/* Scoped to the embedded business opportunity conversation. */
.ai-discovery{background:#f3f4f8;border-block:1px solid var(--line)}
.discovery-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;max-width:800px}
#ai-explorer-heading{text-align:center;font-size:clamp(34px,3.4vw,48px);line-height:1.2;max-width:740px;margin-inline:auto}
.discovery-chat{padding-bottom:20px;min-width:0;background:#fff;border:1px solid #dcdfe9;border-radius:16px;box-shadow:0 14px 50px #252e6310;overflow:hidden}
.discovery-conversation{padding:28px 26px 6px;max-height:500px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth}
.discovery-speaker{font:10px/1.5 var(--mono);letter-spacing:.08em;color:#687298;display:block;margin-bottom:12px}
.discovery-message{font-size:15px;line-height:1.8;overflow-wrap:anywhere;margin-bottom:22px}
.discovery-message p{margin:0 0 10px;white-space:pre-wrap}
.discovery-message p:last-child{margin-bottom:0}
.discovery-message-identity{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.discovery-message-name{font-size:13px;font-weight:600;color:#33394f}
.discovery-message-avatar{width:36px;height:36px;flex:0 0 36px;object-fit:cover;border-radius:50%;background:#eeebff}
.discovery-message-bubble{min-width:0;max-width:calc(100% - 48px);margin-left:48px;width:fit-content;padding:16px 18px;background:#f0efff;border:1px solid #e5e1fa;border-radius:3px 16px 16px 16px;color:#252640}
.discovery-message-user{margin:0 0 24px 48px;padding:4px 0;text-align:right;color:#50566a;background:none;border:0;border-radius:0}
.discovery-message-user .discovery-speaker{margin-bottom:6px;color:#7c8190}
.discovery-starters{padding:4px 26px 24px}
.discovery-starters>div{display:flex;gap:8px;flex-wrap:wrap}
.discovery-starters button,.discovery-followups button{background:#fff;border:1px solid #dce0ec;border-radius:7px;padding:9px 12px;font-size:12px;cursor:pointer;color:#424d74;text-align:left;transition:border-color .2s,background .2s}
.discovery-starters button:hover,.discovery-followups button:hover{background:#f5f6ff;border-color:#8995ef}
.discovery-starters button span{margin-left:6px}
.discovery-form{margin:0 20px;border:1px solid #ccd2e4;border-radius:10px;padding:15px;background:#fff;transition:border-color .2s,box-shadow .2s}
.discovery-form:focus-within{border-color:#7684ee;box-shadow:0 0 0 1px #7684ee}
.discovery-input-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.discovery-form textarea{display:block;width:100%;resize:vertical;min-height:86px;max-height:240px;border:0;padding:0;font:14px/1.75 Manrope,Arial,sans-serif;color:var(--ink);background:transparent}
.discovery-form textarea:focus{outline:none;box-shadow:none}
.discovery-form textarea::placeholder{color:#818697}
.discovery-composer-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px}
.discovery-composer-footer .button{font-size:13px;padding:9px 15px;gap:16px;cursor:pointer;flex-shrink:0}
.discovery-chat button:disabled{opacity:.6;cursor:wait;transform:none}
.discovery-privacy{font-size:11px;line-height:1.7;color:#74798a;margin:15px 26px 22px}
.discovery-error{font-size:13px;line-height:1.7;color:#9b3b29;background:#fff5f1;border-radius:7px;margin:12px 20px 0;padding:12px 15px}
.discovery-booking{margin:20px 20px 0;text-align:center}
.discovery-booking .button{font-size:13px;padding:12px 16px;gap:16px}
.discovery-opportunity{padding:16px;border:1px solid #e0e4f0;border-radius:9px;margin-top:12px;background:#fafbff}
.discovery-opportunity h3{font-size:16px;font-weight:600;letter-spacing:-.02em;line-height:1.5;margin-bottom:8px}
.discovery-opportunity p{font-size:13px;line-height:1.8}
.discovery-opportunity .discovery-check{color:#5d6680;border-top:1px solid #e4e7f0;padding-top:10px;margin-top:12px}
.discovery-sources{padding-top:15px;font-size:13px;line-height:1.7}
.discovery-sources h3{font-size:14px;font-weight:600;margin-bottom:10px;letter-spacing:0}
.discovery-sources a{display:inline-block;color:#4054c4;text-decoration:underline;text-underline-offset:3px;font-size:12px;margin-top:4px}
.discovery-followups{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.discovery-status{color:#5d6bb0;font-size:13px;padding:8px 0}
.ai-discovery [hidden]{display:none!important}
@media(max-width:800px){.discovery-grid{gap:28px}.discovery-conversation{max-height:440px}}
@media(max-width:480px){.discovery-conversation{padding:23px 18px 2px}.discovery-starters{padding:4px 18px 22px}.discovery-form{margin:0 12px;padding:13px}.discovery-privacy{margin:14px 18px 20px}.discovery-booking{margin:16px 12px 0}.discovery-form textarea{font-size:16px}.discovery-message-identity{gap:8px}.discovery-message-avatar{width:30px;height:30px;flex-basis:30px}.discovery-message-bubble{max-width:calc(100% - 38px);margin-left:38px;padding:13px 14px}.discovery-message-user{margin-left:38px}.discovery-error{margin:12px 12px 0}#ai-explorer-heading{font-size:34px}}

/* Progressive conversation: reserve message and option space during the opening. */
.discovery-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.discovery-type-line{display:grid}
.discovery-type-reserve,.discovery-typed{grid-area:1/1}
.discovery-type-reserve{visibility:hidden}
.discovery-typed:empty:before{content:'•••';letter-spacing:.2em;color:#7b86c0}
.is-typing .discovery-typed:not(:empty):after{content:'';display:inline-block;width:2px;height:1em;background:#7b86c0;vertical-align:-.1em;margin-left:3px;animation:discovery-caret .7s steps(1) infinite}
.discovery-starters{opacity:1;transition:opacity .25s ease}
.discovery-starters.is-awaiting{opacity:0;visibility:hidden;pointer-events:none}
@keyframes discovery-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.discovery-starters{transition:none}.is-typing .discovery-typed:after{animation:none}}
