/* Shared Surf AI response presentation. */
.surf-chat-window{--surf-ink:#132a40;--surf-muted:#607287;--surf-line:#dfe8ed;--surf-accent:#008c75;font-family:Inter,Segoe UI,Arial,sans-serif}
.surf-chat-window .chat-bubble.bot{max-width:100%;min-width:0;line-height:1.6;color:var(--surf-ink)}
.surf-chat-window .sc-wrap{width:100%!important;max-width:1080px!important;min-width:0!important;margin:0!important;overflow-wrap:anywhere}
.surf-chat-window .surf-answer-card,.surf-chat-window .pc-card,.surf-chat-window .ml-card,.surf-chat-window .surf-trend-panel{border:1px solid var(--surf-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 14px #132a4008!important;padding:18px!important;margin:12px 0!important;min-width:0;max-width:100%;box-sizing:border-box}
.surf-chat-window .pc-card.pc-listing{border-left:3px solid #008c75!important}
.surf-chat-window .pc-title,.surf-chat-window .ml-addr,.surf-chat-window h3{font-family:inherit!important;color:var(--surf-ink)!important;font-size:1rem!important;font-weight:650;line-height:1.4;white-space:normal!important;overflow-wrap:anywhere}
.surf-chat-window .pc-price{font-size:1.13rem!important;color:#007863!important;font-weight:750;white-space:nowrap}
.surf-chat-window .pc-meta,.surf-chat-window .pc-foot{font-size:.8rem!important;color:var(--surf-muted)!important;line-height:1.6}
.surf-chat-window .pc-foot{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid #edf1f4;padding-top:10px;margin-top:10px}
.surf-chat-window .pc-ask,.surf-chat-window .pc-note{border:1px solid #dcece7!important;border-left:3px solid #008c75!important;border-radius:12px!important;background:#f3faf7!important;padding:14px 16px!important;margin:10px 0 14px!important;font-size:.88rem;line-height:1.65;color:#203c46}
.surf-chat-window .pc-ask p,.surf-chat-window .pc-note p{margin:6px 0}
.surf-chat-window .surf-answer-lead{font-weight:400!important;font-size:.94rem!important;background:none!important;border:0!important;padding:0!important;line-height:1.75}
.surf-chat-window .surf-answer-topline{font-size:.66rem;letter-spacing:.09em;color:#00816d!important;margin-bottom:12px}
.surf-chat-window .surf-answer-body p{margin:0 0 12px;line-height:1.75}
.surf-chat-window .pc-choices{display:flex!important;flex-wrap:wrap!important;gap:8px!important;max-width:100%}
.surf-chat-window .pc-choice{flex:1 1 180px;min-width:0!important;max-width:100%;border:1px solid #d6e3e4!important;border-radius:10px!important;background:#fff!important;color:#173c48!important;padding:10px 13px!important;line-height:1.45;white-space:normal!important;font-size:.8rem!important;font-weight:600;transition:background .15s,border-color .15s}
.surf-chat-window .pc-choice:hover{background:#eaf7f1!important;border-color:#008c75!important}
.surf-chat-window .pc-btn{background:#007f6c!important;color:#fff!important;border:0!important;border-radius:8px!important;padding:7px 14px!important;text-decoration:none!important;font-size:.78rem!important;display:inline-flex;align-items:center;justify-content:center;min-height:32px}
.surf-chat-window table{width:100%;border-collapse:collapse;font-size:.82rem;line-height:1.55;background:white}
.surf-chat-window th{background:#edf4f6!important;color:#264459!important;text-align:left;padding:12px 10px!important;white-space:nowrap;font-weight:650;border-bottom:1px solid #dce6ec}
.surf-chat-window td{padding:11px 10px!important;border-bottom:1px solid #e8eef2;vertical-align:top}
.surf-chat-window tbody tr:nth-child(even){background:#f8fafb}
.surf-chat-window tr[hidden]{display:none!important}
.surf-chat-window .surf-chart-explanation,.surf-chat-window .surf-median-summary{font-size:.78rem!important;color:#607287!important;line-height:1.6!important;max-width:85ch}
.surf-chat-window svg[role=img]{max-width:100%;max-height:240px}
.surf-chat-window .surf-chart-lightbox svg[role=img]{max-height:none}
.surf-chat-window .surf-stat-tile{border-radius:12px!important;padding:12px 14px!important;border:1px solid #dfe8ed!important;border-top:3px solid #008c75!important;background:#fff!important;box-shadow:none}
.surf-chat-window details{border:1px solid #e1e9ed;border-radius:10px;padding:10px 12px;margin:8px 0}
.surf-chat-window summary{font-weight:650;color:#254c58;cursor:pointer}
@media(max-width:600px){.surf-chat-window .sc-wrap{width:100%!important}.surf-chat-window .pc-card,.surf-chat-window .surf-answer-card{padding:13px!important;border-radius:12px!important}.surf-chat-window .pc-row{flex-wrap:wrap;gap:7px}.surf-chat-window .pc-choice{flex-basis:135px}.surf-chat-window table{font-size:.76rem}.surf-chat-window td,.surf-chat-window th{padding:9px 8px!important}.surf-chat-window svg[role=img]{max-height:190px}.surf-chat-window .pc-ask{padding:12px!important}}
@media(prefers-reduced-motion:reduce){.surf-chat-window *{transition:none!important}}

/* Chat shell refresh */
#surfChatWindow{background:#f4f7f8!important;border:1px solid #dce7e9!important;box-shadow:0 24px 85px #122f4633!important;overflow:hidden}
#surfChatWindow:not(.maximized){width:min(580px,calc(100vw - 32px))!important;height:min(720px,calc(100dvh - 120px))!important;border-radius:22px!important}
#surfChatWindow .surf-chat-header{display:flex;align-items:center;gap:10px;padding:17px 18px!important;background:linear-gradient(110deg,#102c3d,#174859)!important;border-bottom:3px solid #32b99a!important;min-height:76px;box-sizing:border-box;flex-shrink:0}
#surfChatWindow .surf-chat-header-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:13px!important;background:#ffffff16!important;border:1px solid #ffffff25;display:grid;place-items:center;box-shadow:none!important}
#surfChatWindow .surf-chat-header-info .name{font-family:inherit!important;font-size:1.08rem!important;font-weight:700;color:#fff;letter-spacing:-.02em}
#surfChatWindow .surf-chat-header-info .status{font-size:.69rem!important;color:#b5ded5!important;margin-top:3px}
#surfChatWindow .surf-chat-header button{width:30px;height:30px;border:1px solid #ffffff25!important;border-radius:8px;background:#ffffff0b!important;color:#edf9f6!important;font-size:1rem;flex-shrink:0;cursor:pointer;padding:0}
#surfChatWindow .surf-chat-header button:hover{background:#ffffff25!important}
#surfChatWindow .surf-chat-messages{padding:22px 18px!important;background:linear-gradient(180deg,#f3f7f8,#f8fafb)!important;overflow-x:hidden;overflow-y:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#c6d5da transparent}
#surfChatWindow .chat-bubble{box-sizing:border-box;margin-bottom:22px!important}
#surfChatWindow .chat-bubble.user{align-self:flex-end;max-width:88%;padding:12px 16px!important;border-radius:16px 16px 4px 16px!important;background:#173c50!important;color:#fff!important;font-size:.88rem;line-height:1.6;box-shadow:0 3px 9px #173c5010}
#surfChatWindow .chat-bubble.bot{background:transparent!important;border:0!important;padding:0!important;width:100%;max-width:100%;font-size:.88rem}
#surfChatWindow .bot-label{font-size:.64rem!important;letter-spacing:.12em;text-transform:uppercase;font-weight:750;color:#177e6c!important;margin:0 0 9px 3px}
#surfChatWindow .surf-chat-suggestions{background:#fff!important;border-top:1px solid #e1eaed;padding:10px 16px!important;display:flex;gap:7px;flex-wrap:wrap}
#surfChatWindow .surf-suggestion-btn{background:#f0f7f5!important;border:1px solid #dceae5!important;color:#21534c!important;border-radius:8px!important;padding:7px 10px!important;font-size:.72rem;cursor:pointer}
#surfChatWindow .surf-chat-input-row{padding:14px 16px 9px!important;background:#fff!important;border-top:1px solid #e0e9ed;gap:9px!important;display:flex;align-items:center;flex-shrink:0}
#surfChatWindow .surf-chat-input{height:46px!important;min-width:0;flex:1;border:1px solid #d4e1e6!important;border-radius:12px!important;background:#f8fafb!important;padding:0 13px!important;font-size:.86rem!important;color:#153b4b;outline:none}
#surfChatWindow .surf-chat-input:focus{border-color:#008c75!important;box-shadow:0 0 0 3px #008c7514!important;background:#fff!important}
#surfChatWindow .surf-send-btn{width:44px!important;height:44px!important;flex:0 0 44px;border-radius:12px!important;border:0;background:#008c75!important;color:white!important;cursor:pointer;box-shadow:none}
#surfChatWindow .surf-disclaimer{background:#fff!important;padding:0 16px 12px!important;color:#7a8c99;font-size:.65rem}
#surfChatWindow .surf-export-menu{border:1px solid #dce7e9;border-radius:12px;padding:6px;background:white;box-shadow:0 12px 30px #14394720;min-width:205px;z-index:20}
#surfChatWindow .surf-export-menu button{padding:11px 13px;border-radius:8px;font-size:.82rem;text-align:left;width:100%;background:#fff;color:#173c50;border:0;cursor:pointer}
#surfChatWindow .surf-export-menu button:hover{background:#edf7f3!important;color:#145b4d!important}
@media(max-width:600px){#surfChatWindow:not(.maximized),#surfChatWindow.maximized{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;inset:0!important;border-radius:0!important}#surfChatWindow .surf-chat-header{padding:12px!important;gap:7px}#surfChatWindow .surf-chat-header-avatar{width:34px;height:34px;flex-basis:34px}#surfChatWindow .surf-chat-header-info .name{font-size:.95rem!important}#surfChatWindow .surf-chat-header-info .status{font-size:.61rem!important}#surfChatWindow .surf-chat-header button{width:27px;height:29px}#surfChatWindow .surf-chat-maximize,#surfChatWindow .surf-chat-minimize{display:none!important}#surfChatWindow .surf-chat-messages{padding:16px 12px!important}#surfChatWindow .surf-chat-input-row{padding:10px 12px 8px!important}#surfChatWindow .surf-disclaimer{padding-bottom:max(10px,env(safe-area-inset-bottom))!important}#surfChatWindow .chat-bubble.user{max-width:92%}}

/* Purposeful welcome state */
#surfChatWindow .chat-bubble.bot:has(.surf-welcome)>.bot-label{display:none}
#surfChatWindow .surf-welcome{padding:8px 2px 2px;max-width:860px;margin:0 auto}
#surfChatWindow .surf-welcome-kicker{display:flex;align-items:center;gap:7px;color:#217c6c;font-size:.62rem;letter-spacing:.12em;font-weight:750;margin-bottom:14px}
#surfChatWindow .surf-welcome-kicker>span{width:6px;height:6px;border-radius:50%;background:#27ad8d}
#surfChatWindow .surf-welcome h2{font-family:inherit;color:#153449;font-size:clamp(1.45rem,3vw,2rem);font-weight:720;letter-spacing:-.04em;line-height:1.15;margin:0 0 11px;max-width:20ch}
#surfChatWindow .surf-welcome>p{color:#637684;line-height:1.65;font-size:.86rem;max-width:48ch;margin:0 0 20px}
#surfChatWindow .surf-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#surfChatWindow .surf-start-card{font-family:inherit;display:flex;align-items:flex-start;gap:9px;min-height:100px;padding:15px 12px;background:#fff;border:1px solid #dbe6e9;border-radius:13px;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s;color:#173c50;min-width:0}
#surfChatWindow .surf-start-card:hover{border-color:#65b5a4;background:#f7fcfa;box-shadow:0 4px 15px #18765f0b}
#surfChatWindow .surf-start-card:focus-visible{outline:2px solid #008c75;outline-offset:3px}
#surfChatWindow .surf-start-number{font-size:.62rem;color:#418c7b;background:#ecf7f2;border-radius:5px;padding:3px 5px;line-height:1.3}
#surfChatWindow .surf-start-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
#surfChatWindow .surf-start-copy strong{font-size:.84rem;font-weight:650;line-height:1.25}
#surfChatWindow .surf-start-copy small{font-size:.72rem;color:#70818d;line-height:1.5}
#surfChatWindow .surf-start-arrow{margin-left:auto;color:#579182;font-size:.9rem;line-height:1}
#surfChatWindow .surf-welcome-tip{margin-top:15px;padding:11px 0;color:#758893;border-top:1px solid #e0e9ed;font-size:.72rem;line-height:1.6}
#surfChatWindow .surf-welcome-tip>span[aria-hidden]{color:#159b7d;margin-right:5px}
@media(max-width:400px){#surfChatWindow .surf-start-card{padding:12px 9px;gap:7px;min-height:108px}#surfChatWindow .surf-start-arrow{display:none}#surfChatWindow .surf-start-copy strong{font-size:.79rem}#surfChatWindow .surf-start-copy small{font-size:.68rem}}

#surfChatWindow .surf-welcome-tip-copy{color:inherit;display:inline;overflow-wrap:anywhere}

/* Unified readable typography across guidance, database cards and planned sections. */
#surfChatWindow{font-family:"Segoe UI",Arial,sans-serif!important;font-size:14px!important;line-height:1.65}
#surfChatWindow :where(p,li,div,span,strong,small,a,button,input,table,th,td,h1,h2,h3,h4){font-family:inherit}
#surfChatWindow .chat-bubble.bot,#surfChatWindow .chat-bubble.user,#surfChatWindow .surf-answer-body,#surfChatWindow .pc-ask,#surfChatWindow .pc-note{font-size:14px!important;line-height:1.65!important}
#surfChatWindow .chat-bubble.bot p,#surfChatWindow .chat-bubble.bot li{font-size:14px!important;line-height:1.65!important}
#surfChatWindow .chat-bubble.bot h3,#surfChatWindow .surf-plan-section>h3{font-size:18px!important;line-height:1.35!important;font-weight:650;margin:0 0 12px;color:#153449}
#surfChatWindow .pc-title,#surfChatWindow .pc-price{font-size:16px!important;line-height:1.4!important}
#surfChatWindow .pc-meta,#surfChatWindow .pc-foot,#surfChatWindow .pc-why{font-size:12px!important;line-height:1.6!important}
#surfChatWindow .chat-bubble.bot table,#surfChatWindow .chat-bubble.bot th,#surfChatWindow .chat-bubble.bot td{font-size:13px!important;line-height:1.6!important}
#surfChatWindow .surf-plan-intro{font-size:14px;color:#587080;margin:0 0 14px}
#surfChatWindow .surf-plan-section{background:#fff;border:1px solid #dbe6eb;border-radius:14px;padding:16px;margin:14px 0;min-width:0;overflow-wrap:anywhere}
#surfChatWindow .surf-plan-section .sc-wrap{max-width:100%!important}
#surfChatWindow .surf-plan-section>h3{border-bottom:1px solid #e5edef;padding-bottom:10px}
#surfChatWindow .pc-choice,#surfChatWindow .pc-btn{font-size:13px!important;line-height:1.45!important}
#surfChatWindow svg text{font-family:"Segoe UI",Arial,sans-serif}
@media(max-width:600px){#surfChatWindow .surf-chat-input{font-size:16px!important}#surfChatWindow .surf-plan-section{padding:12px}#surfChatWindow .chat-bubble.bot h3{font-size:17px!important}}
/* Shared listing facts: keep land measurements separate from built-up area. */
#surfChat .pc-land-facts, .pc-land-facts {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 0;border-top:1px solid #e1e9ed;}
.pc-land-facts div {min-width:0;}
.pc-land-facts span {display:block;font-size:12px;color:#64748b;}
.pc-land-facts strong {display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;}
@media(max-width:480px){#surfChat .pc-land-facts,.pc-land-facts{grid-template-columns:repeat(2,minmax(0,1fr));}.pc-land-facts div:last-child{grid-column:1/-1;}}
