/* Luxury Editorial integration, scoped to My HomePilot and explicit conversation routes. */
body:has(#page-my-homepilot.active) { background:#f5f3ed; }
body:has(#page-my-homepilot.active) > .navbar { display:none; }
body:has(#page-my-homepilot.active) #compareBar {display:none!important;}
#myHomePilotRoles :is(h2,h3) {color:#102637!important;}
#page-my-homepilot { background:linear-gradient(to bottom,#fbfaf6 0 84px,#f5f3ed 84px 100%);color:#102637;min-height:100vh;padding-top:0; }
#page-my-homepilot .hp-my-homepilot { max-width:1200px;margin:auto;padding:0 24px 48px; }
#page-my-homepilot [hidden],#hp2ConversationRoot [hidden] {display:none!important;}
#page-my-homepilot *,#hp2ConversationRoot * {box-sizing:border-box;}
#page-my-homepilot h1,#page-my-homepilot h2,#page-my-homepilot h3,#page-my-homepilot p {color:inherit;}
.hpe-header {position:relative;left:50%;transform:translateX(-50%);width:min(calc(100vw - 80px),1300px);min-height:84px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;padding:0;border-bottom:1px solid #e0dfd8;z-index:20;}
.hpe-brand {font:700 32px/1 Georgia,"Times New Roman",serif;letter-spacing:-.06em;color:#0b1d2b!important;text-decoration:none;white-space:nowrap;}
.hpe-brand span {color:#a07841;}
.hpe-header .hpe-desktop-nav {display:flex;align-items:center;gap:32px;}
#page-my-homepilot .hpe-header .hpe-desktop-nav a {color:#152b38;font:600 14px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;padding:12px 0;white-space:nowrap;}
#page-my-homepilot .hpe-header .hpe-desktop-nav .hpe-connect-link {color:#876132;text-transform:uppercase;letter-spacing:.07em;}
.hpe-header .hpe-desktop-nav a[aria-current] {border-bottom:2px solid #876132;}
#page-my-homepilot .hpe-header .hpe-account-link {justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:11px 18px;border:1px solid #8b9aa1;color:#152b38;text-decoration:none;font:600 14px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;}
#page-my-homepilot .hpe-header :is(.hpe-desktop-nav a,.hpe-account-link):hover {text-decoration:underline;text-underline-offset:6px;}
.hpe-mobile-nav {display:none;}
.hpe-session-status{margin:8px 0 0;color:#536571;font:600 13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;overflow-wrap:anywhere}
.hpe-page-heading {padding:32px 0 24px;}
.hpe-page-heading p {font-size:14px;color:#50616a!important;margin:0 0 8px;}
#page-my-homepilot h1 {font:clamp(34px,4vw,52px)/1.1 Georgia,serif;letter-spacing:-1.5px;margin:0;}
.hpe-role-tabs {display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:24px;}
.hpe-role-tabs button {background:transparent;border:1px solid #aab8bc;padding:10px 16px;min-height:44px;color:#102637;border-radius:3px;font:inherit;cursor:pointer;}
.hpe-role-tabs button[aria-pressed="true"] {background:#102637;color:#fffdf7;}
.hpe-layout {display:grid;grid-template-columns:minmax(0,2.2fr) minmax(250px,1fr);gap:48px;}
#page-my-homepilot .hpe-section-title {font:600 15px/1.4 system-ui,sans-serif;margin:0 0 14px;color:#344954;}
.hpe-relation {padding:28px;background:#fffdf7;border-top:3px solid #ceb276;margin-bottom:24px;overflow-wrap:anywhere;}
.hpe-relation-top {display:flex;justify-content:space-between;gap:16px;font-size:14px;color:#50616a;margin-bottom:22px;}
.hpe-signature {font-size:12px;color:#735621;letter-spacing:.04em;border-bottom:1px solid #b29150;}
#page-my-homepilot .hpe-overline {font-size:14px;color:#50616a;margin:0 0 5px;}
#page-my-homepilot .hpe-relation h2 {font:34px/1.2 Georgia,serif;letter-spacing:-.8px;margin:0 0 8px;}
#page-my-homepilot .hpe-verified {font-size:14px;color:#23684e;}
.hpe-property {border-top:1px solid #deddd4;margin-top:20px;padding-top:16px;}
.hpe-property strong {font-size:18px;}
.hpe-property p {font-size:14px;color:#50616a!important;margin:6px 0;}
#page-my-homepilot .hpe-status {font-size:14px;color:#23684e;margin:18px 0;}
.hpe-action {display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:48px;padding:10px 0;color:#102637!important;font-size:15px;text-decoration:none;}
.hpe-action:hover {text-decoration:underline;}
.hpe-primary {background:#ceb276;padding:14px 20px;border-radius:3px;font-weight:600;}
.hpe-primary:hover {background:#e1c58d;}
.hpe-work {align-self:start;}
.hpe-work-item {border-top:1px solid #d6d7cf;padding:20px 0;}
#page-my-homepilot .hpe-work-item h3 {font:24px/1.3 Georgia,serif;margin:0 0 10px;}
.hpe-work-item p {font-size:15px;color:#50616a!important;}
.hpe-work > .hpe-action,.hpe-work-item .hpe-action {display:flex;}
.hpe-empty {padding:28px;background:#fffdf7;}
#page-my-homepilot .hpe-empty h2 {font:36px/1.2 Georgia,serif;}
.hpe-empty p {font-size:16px;line-height:1.6;}
.hpe-activity {max-width:760px;margin:24px 0;}
.hpe-activity > div {padding:14px 0;border-top:1px solid #d6d7cf;}
.hpe-activity p {margin:0;font-size:15px;}
.hpe-activity time {font-size:14px;color:#50616a;}
.hpe-account {border-top:1px solid #d6d7cf;padding:18px 0;}
.hpe-account summary {cursor:pointer;min-height:44px;font-size:16px;}
#page-my-homepilot .hpe-account .hp-card {background:#fffdf7;color:#102637;box-shadow:none;border:1px solid #d6d7cf;}
#page-my-homepilot .hpe-account strong,#page-my-homepilot .hpe-account p {color:#102637;}
.hpe-error {padding:20px;border:1px solid #947033;background:#fffdf7;color:#102637;margin-bottom:20px;}
.hpe-error button {min-height:44px;background:transparent;color:#102637;text-decoration:underline;border:0;font:inherit;cursor:pointer;}
#page-my-homepilot :focus-visible,#hp2ConversationRoot :focus-visible {outline:3px solid #2476b3;outline-offset:4px;}
body.hp2-conversation-route {background:#f5f3ed;}
body.hp2-conversation-route > :not(#hp2ConversationRoot):not(script):not(style):not(link) {display:none!important;}
#hp2ConversationRoot {max-width:1100px;margin:auto;padding:20px 24px 40px;color:#102637;background:#f5f3ed;font:16px/1.5 system-ui,sans-serif;min-height:100vh;}
#hp2ConversationRoot #connectConversationsSection {display:block;padding:0;background:none;}
#hp2ConversationRoot .connect-section-heading,#hp2ConversationRoot #conversationList {display:none;}
#hp2ConversationRoot .connect-chat-layout {display:block;}
#hp2ConversationRoot .connect-chat-panel {background:#fffdf7;border:1px solid #deddd4;border-radius:3px;padding:0;}
#hp2ConversationRoot #conversationHeader {background:#ecebe2;padding:24px;border-bottom:1px solid #deddd4;color:#102637;}
#hp2ConversationRoot h1 {font:38px/1.2 Georgia,serif;margin:24px 0;color:#102637;}
#hp2ConversationRoot #conversationHeader h3 {font:28px/1.2 Georgia,serif;color:#102637;}
#hp2ConversationRoot #conversationHeader p {font-size:15px;color:#50616a;}
#hp2ConversationRoot #messageList {height:auto;min-height:260px;max-height:50vh;overflow:auto;padding:24px;background:#fffdf7;}
#hp2ConversationRoot .connect-message {max-width:min(480px,90%);background:#eceee7;border-radius:0 10px 10px;color:#102637;padding:18px;margin:0 0 18px;}
#hp2ConversationRoot .connect-message.mine {margin-left:auto;background:#e3eaf0;border-radius:10px 0 10px 10px;}
#hp2ConversationRoot .connect-message p {font-size:17px;line-height:1.65;color:#102637;white-space:pre-wrap;overflow-wrap:anywhere;}
#hp2ConversationRoot .connect-message time {font-size:13px;color:#50616a;}
#hp2ConversationRoot .connect-empty {color:#50616a;background:none;}
#hp2ConversationRoot #messageForm {position:sticky;bottom:0;background:#fffdf7;padding:18px 24px max(18px,env(safe-area-inset-bottom));border-top:1px solid #deddd4;}
#hp2ConversationRoot #messageBody {background:#fff;color:#102637;font:16px/1.5 system-ui,sans-serif;border:1px solid #a7b4b7;}
#hp2ConversationRoot #messageForm button {background:#ceb276;color:#102637;min-height:48px;}
@media(max-width:1100px){
 #page-my-homepilot{background:linear-gradient(to bottom,#fbfaf6 0 74px,#f5f3ed 74px 100%)}
 .hpe-header{width:calc(100vw - 48px);min-height:74px;display:flex;justify-content:space-between;gap:16px}
 .hpe-brand{font-size:28px}
 .hpe-header .hpe-desktop-nav,.hpe-header .hpe-account-link{display:none!important}
 .hpe-mobile-nav{display:block}
 .hpe-mobile-nav summary{display:flex;flex-direction:column;justify-content:center;gap:5px;width:48px;height:48px;padding:12px;border:1px solid #a8b4b5;list-style:none;cursor:pointer}
 .hpe-mobile-nav summary::-webkit-details-marker{display:none}
 .hpe-mobile-nav summary span{display:block;width:100%;height:2px;background:#0b1d2b}
 .hpe-mobile-nav nav{position:absolute;top:100%;left:calc((100% - 100vw)/2);width:100vw;background:#fbfaf6;box-shadow:0 20px 35px rgba(5,20,32,.16);padding:12px 24px 30px;max-height:calc(100svh - 110px);overflow:auto;display:flex;flex-direction:column}
 #page-my-homepilot .hpe-mobile-nav nav a{display:flex;align-items:center;min-height:54px;border-bottom:1px solid #d6d9d4;color:#152b38;text-decoration:none;font:28px/1.2 Georgia,serif}
 .hpe-mobile-nav nav a[aria-current]{color:#876132}
}
@media(max-width:899px){.hpe-layout{grid-template-columns:minmax(0,1fr);gap:24px}.hpe-relation{padding:22px}.hpe-page-heading{padding-top:24px}}
@media(max-width:430px){#page-my-homepilot{background:linear-gradient(to bottom,#fbfaf6 0 68px,#f5f3ed 68px 100%)}#page-my-homepilot .hp-my-homepilot,#hp2ConversationRoot{padding-left:20px;padding-right:20px}.hpe-header{width:calc(100vw - 40px);min-height:68px}.hpe-primary{width:100%}#page-my-homepilot .hpe-relation h2{font-size:30px}#hp2ConversationRoot #messageList{padding:16px}#hp2ConversationRoot #messageForm{padding:16px}.hpe-property{overflow-wrap:anywhere}}
