/* Shared deterministic company search. */
/* Company choices use the same conversation surface as company profiles. */
.company-search-answer{min-width:0;text-align:left;color:#23233d}
.company-search-answer .company-finder-notice{margin:10px 0 16px;color:#625b70;font-size:14px;line-height:1.6}
.company-search-answer .company-finder-results{gap:0;margin-top:0;border:1px solid #e5e1ec;border-radius:12px;background:#fff}
.company-search-answer .company-finder-results:empty{border:0}
.company-search-answer .company-finder-result{min-height:60px;border:0;border-bottom:1px solid #ebe7f1;border-radius:0;background:transparent}
.company-search-answer .company-finder-result:last-child{border-bottom:0}
.company-search-answer .company-finder-result:hover{background:#f5f3ff;box-shadow:inset 3px 0 #6356ed}
.company-search-answer .company-finder-result:focus-visible{outline:2px solid #847cf0;outline-offset:-3px}
.company-search-answer>.research-assistant-content>strong{font-size:14px;color:#5144d3}
.company-finder{width:100%;min-width:0;text-align:left;font-family:inherit;color:#17182d}
.company-finder [hidden]{display:none!important}
.company-finder-form{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(165px,.8fr) auto;align-items:end;gap:14px;margin:0}
.company-finder-company,.company-finder-country{display:grid;min-width:0;gap:8px}
.company-finder-company>label,.company-finder-country>label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0;font-size:13px;line-height:1.5;font-weight:600;color:#39374e}
.company-finder-optional{font-size:12px;font-weight:400;color:#79758e}
.company-finder-row{display:flex;min-width:0}
.company-finder-row input,.company-country-trigger{box-sizing:border-box;width:100%;min-width:0;height:50px;border:1px solid #d8d5e5;border-radius:10px;background:#faf9fe;box-shadow:none;padding:0 13px;font:inherit;font-size:16px;color:#17182d;color-scheme:light;transition:border-color .15s,background .15s}
.company-finder-row input{flex:1}
.company-finder-row input::placeholder{color:#79758a;opacity:1}
.company-country-picker{position:relative;min-width:0}
.company-country-trigger{display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer}
.company-country-flag{flex-shrink:0;font-size:21px;line-height:1}
.company-country-globe{display:inline-block;width:20px;height:20px;background:#6d59b0;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E") center/contain no-repeat}
.company-country-name{flex:1;min-width:0;overflow-wrap:anywhere}
.company-country-trigger .company-country-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.company-country-input{display:block;flex:1;width:100%;min-width:0;height:100%;border:0;border-radius:5px;padding:0;background:transparent;font:inherit;font-size:inherit;color:inherit;text-overflow:ellipsis;box-shadow:none}
.company-country-input::placeholder{color:#79758a;opacity:1}
.company-country-toggle{display:grid;place-items:center;flex-shrink:0;width:28px;height:100%;min-height:40px;border:0;padding:0;background:transparent;font:inherit;font-size:20px;color:#69627e;cursor:pointer;transition:transform .15s}
.company-country-toggle[aria-expanded=true]{transform:rotate(180deg)}
.company-country-panel{position:absolute;z-index:50;top:calc(100% + 8px);left:0;width:100%;min-width:0;box-sizing:border-box;border:1px solid #d8d5e5;border-radius:12px;background:#fff;box-shadow:0 12px 32px #251d9426;overflow:hidden;color:#17182d}
.company-country-list{max-height:260px;max-height:min(260px,35dvh);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#d8d5e5 transparent;padding:5px}
.company-country-option{box-sizing:border-box;display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border-radius:7px;cursor:pointer;font-size:14px;line-height:1.5}
.company-country-option:hover,.company-country-option.is-active{background:#f4f2ff}
.company-country-option[aria-selected=true]{color:#4c48c6;font-weight:600}
.company-country-check{flex-shrink:0;width:16px;color:#4c48f9}
.company-country-status{margin:0;padding:10px 14px;border:0;font-size:12px;line-height:1.5;color:#626078}
.company-country-status:empty{display:none}
.company-finder-submit{min-width:98px;min-height:50px;border:0;border-radius:10px;padding:12px 20px;background:#4c48f9;color:#fff;font:inherit;font-size:15px;line-height:1.5;font-weight:600;cursor:pointer;transition:background .15s}
.company-finder-submit:not(:disabled):hover{background:#3e38d9}
.company-finder-submit:disabled{background:#e9e5fc;color:#746791;cursor:default}
.company-finder-notice{border:0;font-size:13px;line-height:1.55;margin:14px 0 0;color:#626078}
.company-finder-notice:empty{display:none}
.company-finder-notice.is-error{color:#a32940;background:#fff2f4;border-radius:8px;padding:10px 12px}
.company-finder-results{display:grid;gap:8px;min-width:0;max-width:100%;margin-top:14px;container-type:inline-size;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#aaa1e3 transparent}
.company-finder-results:empty{margin:0}
.company-finder-result{box-sizing:border-box;display:grid;grid-template-columns:minmax(210px,1fr) 150px 145px 122px 132px;align-items:center;gap:14px;width:100%;min-width:850px;min-height:64px;border:1px solid #dedbea;border-radius:10px;padding:10px 14px;text-align:left;background:#fff;font:inherit;color:#23233d;cursor:pointer;white-space:nowrap;transition:border-color .15s,background .15s}
.company-finder-result:not(:disabled):hover{border-color:#6356ed;background:#f3f1ff;box-shadow:inset 0 0 0 1px #6356ed}
.company-finder-result>strong,.company-finder-result>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.company-finder-result-name{font-size:14px;line-height:1.5;font-weight:700}
.company-finder-result-registration{font-size:12px;line-height:1.5;color:#55516a;font-variant-numeric:tabular-nums}
.company-finder-result-country{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.5;color:#55516a}
.company-finder-result-country>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.company-finder-result-flag{flex-shrink:0;font-size:20px;line-height:1}
.company-finder-result-status{justify-self:start;box-sizing:border-box;max-width:100%;border:1px solid #e2e0e9;border-radius:6px;padding:5px 7px;background:#f4f3f7;font-size:11px;line-height:1.5;font-weight:600;color:#625e70}
.company-finder-result-status[data-tone=active]{border-color:#c8e7d5;background:#eaf7ef;color:#1a683d}
.company-finder-result-status[data-tone=inactive]{border-color:#f0d2d7;background:#fceef0;color:#a0354a}
.company-finder-result-action{display:flex;align-items:center;justify-content:center;gap:9px;min-height:40px;border:1px solid #4c3cce;border-radius:8px;padding:0 11px;background:#4c3cce;color:#fff;font-size:12px;line-height:1.5;font-weight:700;box-shadow:0 2px 4px #3a28a51f}
.company-finder-result-action>span{font-size:17px;line-height:1}
.company-finder-result:not(:disabled):hover .company-finder-result-action{background:#392bb0;border-color:#392bb0}
.company-finder-result:disabled{cursor:wait}
.company-finder:not(.is-pointer-focus) .company-finder-result:focus-visible{outline-offset:-3px}
.company-finder-selected{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:12px;background:#f2f1ff;border:1px solid #e2dfff}
.company-finder-selected strong,.company-finder-selected span{display:block;overflow-wrap:anywhere}
.company-finder-selected strong{font-size:14px;line-height:1.5}
.company-finder-selected span{font-size:12px;color:#606079;margin-top:3px}
.company-finder-change{border:0;background:none;color:#4c48c6;font:inherit;font-size:13px;cursor:pointer;padding:6px 0;flex-shrink:0}
/* Text inputs also match :focus-visible after a mouse click in browsers.
   Keep the ring for keyboard navigation without drawing it on pointer focus. */
.company-finder button:focus,.company-finder input:focus,.company-finder select:focus{outline:none}
.company-finder:not(.is-pointer-focus) button:focus-visible,.company-finder:not(.is-pointer-focus) input:focus-visible,.company-finder:not(.is-pointer-focus) select:focus-visible{outline:2px solid #847cf0;outline-offset:3px}

#regis-search{margin:20px 0 8px}
#ask-company.guided-search #regis-form,#ask-company.guided-search .regis-starters{display:none}
#ask-company.guided-search.is-asking #regis-form{display:block}
#ask-company.guided-search .regis-composer-area{padding-top:0}
#ask-company.guided-search .regis-messages{border-top:0}
#ask-company.guided-search .regis-messages:empty{display:none}
#ask-company.guided-search #regis-heading{font-size:clamp(20px,2.2vw,28px);line-height:1.3}
body.regis-active #regis-search{flex-shrink:0;margin:8px 0}
body.regis-active #ask-company.guided-search .regis-messages{flex:1;min-height:150px}
/* Align the full company profile with the selected-company bar above it. */
body.home-page.regis-active #ask-company.guided-search .regis-messages:has(.cdp-card){max-width:none;padding-inline:0}
body.home-page.regis-active #ask-company.guided-search .regis-answer:has(.cdp-card){padding-inline:0}
.regis-chat.guided-search:not(.regis-has-conversation){height:auto;min-height:0}

/* A single inset search surface, framed by the hero's own colour. */
body.home-page:not(.regis-active) #regis-search{width:100%;max-width:820px;margin:0 auto}
body.home-page:not(.regis-active) #regis-search .company-finder{box-sizing:border-box;padding:5px;border:1px solid #ffffff12;border-radius:22px;background:#ffffff0a;box-shadow:0 16px 40px -20px #24177d45;color:#17182d;transition:border-color .18s,background .18s}
body.home-page:not(.regis-active) #regis-search .company-finder-form{grid-template-columns:minmax(0,1.5fr) minmax(190px,.9fr) auto;align-items:center;gap:0;padding:10px;background:#fcfbff;border:1px solid #fff;border-radius:16px;box-shadow:0 2px 8px #25166f0a}
body.home-page:not(.regis-active) #regis-search .company-finder-company,
body.home-page:not(.regis-active) #regis-search .company-finder-country{gap:1px;padding:1px 16px}
body.home-page:not(.regis-active) #regis-search .company-finder-country{border-left:1px solid #e4e0f0}
body.home-page:not(.regis-active) #regis-search .company-finder-company>label,
body.home-page:not(.regis-active) #regis-search .company-finder-country>label{font-size:12px;line-height:20px;color:#57516c;font-weight:600}
body.home-page:not(.regis-active) #regis-search .company-finder-optional{font-size:11px;color:#767083}
body.home-page:not(.regis-active) #regis-search .company-finder-row input,
body.home-page:not(.regis-active) #regis-search .company-country-trigger{height:40px;border:0;border-radius:6px;padding:0;background:transparent;font-size:16px}
body.home-page:not(.regis-active) #regis-search .company-finder-row input::placeholder{color:#79728b}
body.home-page:not(.regis-active) #regis-search .company-country-trigger{gap:8px}
body.home-page:not(.regis-active) #regis-search .company-country-trigger .company-country-flag{font-size:19px}
body.home-page:not(.regis-active) #regis-search .company-finder-submit{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:122px;min-height:56px;padding:14px 20px;border:1px solid #5a4be0;border-radius:12px;background:linear-gradient(135deg,#6356ed,#4c3cce);color:#fff;box-shadow:0 3px 8px #3a28a51f;transition:background .18s,box-shadow .18s}
body.home-page:not(.regis-active) #regis-search .company-finder-submit::before{content:"";display:block;width:17px;height:17px;flex-shrink:0;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") center/contain no-repeat}
body.home-page:not(.regis-active) #regis-search .company-finder-submit:not(:disabled):hover{background:linear-gradient(135deg,#5445df,#4030b9);box-shadow:0 4px 12px #3a28a536}
body.home-page:not(.regis-active) #regis-search .company-finder-submit:disabled{border-color:#c7b9ec;background:#d8cef8;color:#544276;box-shadow:none;opacity:1}
body.home-page:not(.regis-active) #regis-search .company-country-panel{min-width:250px;top:calc(100% + 16px);left:-16px;border-color:#e4e0f0;border-radius:14px;box-shadow:0 16px 40px #251d942b}
body.home-page:not(.regis-active) #regis-search .company-finder-notice{margin:10px 10px 2px;color:#fff}
body.home-page:not(.regis-active) #regis-search .company-finder-notice.is-error{color:#a32940}
body.home-page:not(.regis-active) #regis-search .company-finder-results{gap:6px;margin-top:8px}
body.home-page:not(.regis-active) #regis-search .company-finder-results:empty{margin:0}
body.home-page:not(.regis-active) .regis-chat.guided-search .regis-chat-top{margin:0;padding:0}
body.home-page:not(.regis-active) .regis-chat.guided-search .regis-chat-top h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.home-page:not(.regis-active) .regis-chat.guided-search .regis-composer-area{padding:0}
body.home-page #regis-status:empty{display:none}

.research-shell.guided-search{display:flex;flex-direction:column;min-height:0}
.research-shell.guided-search #research-form,.research-shell.guided-search .research-composer-meta{display:none}
.research-shell.guided-search.is-asking #research-form{display:grid}
.research-shell.guided-search.is-asking .research-composer-meta{display:flex}
.guided-research-heading{width:100%;max-width:1080px;margin:25px auto 0;padding:0 24px}
.guided-research-heading h1{font-size:26px;margin:0}
.research-shell.has-company .guided-research-heading{display:none}
.research-shell.guided-search .research-thread{overflow-y:auto}
#research-search{flex-shrink:0;width:100%;max-width:1080px;margin:20px auto 8px;padding:0 24px}
.research-shell.guided-search .research-empty{min-height:0;padding:26px 24px 10px}
.research-shell.guided-search .research-empty .research-mark,.research-shell.guided-search .research-prompts{display:none}
.research-shell.guided-search .research-thread:has(.research-messages:empty){flex:0;overflow:visible}
.research-shell.guided-search.has-company #research-empty{display:none}
.cdp-guided-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.cdp-guided-actions button{border:1px solid #dcddee;border-radius:9px;background:#fff;color:#303047;padding:10px 13px;font:inherit;font-size:13px;cursor:pointer}
.cdp-guided-actions button:hover{border-color:#7774ee;background:#f6f5ff}
.cdp-guided-actions button:last-child{color:#4c48c6}
.cdp-guided-feedback{font-size:13px;color:#66667c;margin:8px 0}
.cdp-watch-presets{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.cdp-watch-presets button{padding:8px 12px;border:1px solid #dcddee;border-radius:8px;background:white;font:inherit;font-size:13px;cursor:pointer}
.cdp-watch-presets button[aria-pressed=true]{background:#4c48f9;border-color:#4c48f9;color:white}
.cdp-watch-check code{display:none}

@media(max-width:760px){
 .company-finder-form{grid-template-columns:minmax(0,1fr);gap:14px}
 .company-finder-form>.company-finder-submit{width:100%;font-size:16px}
 .company-country-panel{position:relative;top:auto;margin-top:8px;box-shadow:0 6px 16px #251d9412}
 body.home-page:not(.regis-active) #regis-search .company-finder{padding:0;border:0;border-radius:18px;background:transparent;box-shadow:none}
 body.home-page:not(.regis-active) #regis-search .company-finder-form{grid-template-columns:minmax(0,1fr);align-items:stretch;gap:12px;padding:16px;border-radius:18px;box-shadow:0 8px 28px #24177d18}
 body.home-page:not(.regis-active) #regis-search .company-finder-company,
 body.home-page:not(.regis-active) #regis-search .company-finder-country{grid-column:auto;padding:0;border:0}
 body.home-page:not(.regis-active) #regis-search .company-finder-row input,
 body.home-page:not(.regis-active) #regis-search .company-country-trigger{height:48px;padding:0 12px;border:1px solid #e4e0f0;border-radius:10px;background:#fff;font-size:16px}
 body.home-page:not(.regis-active) #regis-search .company-finder-submit{width:100%;min-width:0;min-height:48px;padding:12px 16px;font-size:15px;box-shadow:none}
 body.home-page:not(.regis-active) #regis-search .company-country-panel{position:absolute;left:0;top:calc(100% + 8px);margin-top:0;width:100%;min-width:0;max-width:none}
}
@media(min-width:1021px){
 body.home-page:not(.regis-active) .regis-chat.guided-search,
 body.home-page:not(.regis-active) #regis-search{max-width:1040px}
 body.home-page:not(.regis-active) #regis-search .company-finder-form{grid-template-columns:minmax(0,1.5fr) minmax(250px,.85fr) auto;padding:14px}
 body.home-page:not(.regis-active) #regis-search .company-finder-company,
 body.home-page:not(.regis-active) #regis-search .company-finder-country{gap:4px;padding-inline:20px}
 body.home-page:not(.regis-active) #regis-search .company-finder-company>label,
 body.home-page:not(.regis-active) #regis-search .company-finder-country>label{font-size:14px;line-height:22px}
 body.home-page:not(.regis-active) #regis-search .company-finder-optional{font-size:12px}
 body.home-page:not(.regis-active) #regis-search .company-finder-row input,
 body.home-page:not(.regis-active) #regis-search .company-country-trigger{height:48px;font-size:18px}
 body.home-page:not(.regis-active) #regis-search .company-finder-submit{min-width:148px;min-height:66px;font-size:17px}
 body.home-page:not(.regis-active) #regis-search .company-country-panel{left:-20px;min-width:280px}
 body.home-page:not(.regis-active) .hero-foundation{margin-top:32px;transform:none}
}
@media(max-width:600px){
 .company-finder-selected{align-items:flex-start;flex-direction:column;gap:7px}
 #research-search{padding:0 16px;margin-top:14px}
 .cdp-guided-actions button{flex:1 1 40%}
}
@media(pointer:coarse){.company-finder button,.cdp-guided-actions button,.cdp-watch-presets button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.company-finder-result,.company-finder-row input,.company-country-trigger,.company-country-toggle,.company-finder-submit,body.home-page:not(.regis-active) #regis-search .company-finder,body.home-page:not(.regis-active) #regis-search .company-finder-submit{transition:none}}
/* Match the available conversation width, including narrow dashboard panes. */
@container(max-width:849px){
 .company-finder-result{min-width:0;max-width:100%;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "registration registration" "country country" "status action";gap:6px 12px;padding:14px;white-space:normal}
 .company-finder-result>strong,.company-finder-result>span{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
 .company-finder-result-name{grid-area:name}
 .company-finder-result-registration{grid-area:registration}
 .company-finder-result-country{grid-area:country}
 .company-finder-result-country>span:last-child{overflow:visible;text-overflow:clip}
 .company-finder-result-status{grid-area:status;margin-top:4px}
 .company-finder-result-action{grid-area:action;min-height:44px;margin-top:4px}
}
@media(max-width:640px){
 body.home-page.regis-active #regis-search{margin:4px 0 0}
 .company-finder-selected{flex-direction:row;justify-content:flex-end;margin:0;padding:0;border:0;background:transparent}
 .company-finder-selected>div{display:none}
 .company-finder-change{min-height:44px;padding:8px 0;font-size:.8125rem}
 #research-search:has(.company-finder-selected:not([hidden])){margin:2px auto 0;padding:0 10px}
}

/* Keep company and country filters above the scrollable conversation. */
body.home-page.regis-active #ask-company.is-previewing{max-width:1080px}
body.home-page.regis-active #ask-company.is-previewing .regis-chat-top{order:0}
body.home-page.regis-active #ask-company.is-previewing .regis-messages{order:2;max-width:none;min-height:0;padding:22px 6px 24px}
body.home-page.regis-active #ask-company.is-previewing #regis-search{order:1;position:relative;z-index:2;margin:0;padding:12px 0 14px;background:#fff}
body.home-page.regis-active #ask-company.is-previewing .regis-composer-area{display:none}
.research-shell.is-previewing .guided-research-heading{order:0;margin-top:16px}
.research-shell.is-previewing .guided-research-heading h1{font-size:16px;font-weight:500;color:#655a74}
.research-shell.is-previewing .research-thread{order:2;flex:1}
.research-shell.is-previewing .research-messages{width:min(1080px,calc(100% - 48px))}
.research-shell.is-previewing #research-search{order:1;position:relative;z-index:2;margin:0 auto;padding:12px 24px 18px}
.research-shell.is-previewing .research-composer-area{display:none}
.is-previewing .company-finder-form{grid-template-columns:minmax(0,1.3fr) minmax(170px,.8fr) auto;gap:12px;padding:14px;border:1px solid #e0dce9;border-radius:18px;background:#fcfbfe;box-shadow:0 4px 18px #25166f0a}
.is-previewing .company-country-panel{position:absolute;top:calc(100% + 10px);bottom:auto;left:0;margin-top:0;width:100%;box-shadow:0 8px 30px #251d9426}
@media(max-width:760px){
 .is-previewing .company-finder-form{grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:10px;border-radius:14px}
 .is-previewing .company-finder-company{grid-column:1/-1}
 .is-previewing .company-finder-company,.is-previewing .company-finder-country{gap:4px}
 .is-previewing .company-finder-company>label,.is-previewing .company-finder-country>label{font-size:12px}
 .is-previewing .company-finder-row input,.is-previewing .company-country-trigger{height:44px}
 .is-previewing .company-finder-form>.company-finder-submit{width:auto;min-height:44px;padding:10px 16px}
 .is-previewing .company-country-panel{width:100%;min-width:0;top:calc(100% + 8px);bottom:auto}
 body.home-page.regis-active #ask-company.is-previewing .regis-messages{padding:12px 0}
 .research-shell.is-previewing .research-messages{width:calc(100% - 20px)}
 .research-shell.is-previewing #research-search{padding:8px 10px 12px}
 body.home-page.regis-active #ask-company.guided-search .regis-chat-top{flex-wrap:wrap;gap:2px 12px}
 body.home-page.regis-active #ask-company.guided-search #regis-heading{flex:1 1 180px;font-size:16px;line-height:1.4;overflow-wrap:anywhere}
 body.home-page.regis-active #ask-company.is-previewing .regis-question{max-width:100%;margin:4px 0 16px auto;padding:10px 14px;font-size:14px;overflow-wrap:anywhere}
}
@media(max-width:480px){
 .is-previewing .company-finder-form{grid-template-columns:minmax(0,1fr)}
 .is-previewing .company-finder-form>.company-finder-submit{width:100%}
}
