#prospectsModule { --prospect-ink:#212844; --prospect-accent:#5454bf; }
/* Own workspace, scoped to this active module only. The module itself keeps
   the scroll position across dossier renders; no extra polling or data store. */
body.auth-ready.prospects-workspace-active { height:100dvh; overflow:hidden!important; scrollbar-gutter:auto!important; }
body.auth-ready.prospects-workspace-active #projectHome > :is(.topbar,.demo-mode-banner),
body.auth-ready.prospects-workspace-active #projectHome .module-sidebar,
body.auth-ready.prospects-workspace-active #projectHome > .home-layout > .platform-owner-sidebar { display:none!important; }
body.auth-ready.prospects-workspace-active #projectHome,
body.auth-ready.prospects-workspace-active #projectHome > .home-layout { display:block!important; width:100%!important; max-width:none!important; height:100dvh!important; min-height:0!important; margin:0!important; padding:0!important; overflow:hidden!important; scrollbar-gutter:auto; }
body.auth-ready.prospects-workspace-active #projectHome #prospectsModule.active { display:block!important; width:100%!important; max-width:none!important; height:100dvh!important; min-height:0!important; margin:0!important; padding:0!important; overflow:auto!important; scrollbar-width:none; background:#f1f3f7; }
body.auth-ready.prospects-workspace-active #prospectsModule::-webkit-scrollbar { display:none; }
body.auth-ready #projectHome #prospectsModule .prospect-hero-home { box-sizing:border-box; display:grid; place-items:center; flex:0 0 44px; justify-self:end; width:44px; height:44px; min-height:44px; padding:0; border:1px solid #ffffff38; border-radius:12px; background:#ffffff0c; color:#fff; cursor:pointer; transition:background .15s,border-color .15s; -webkit-app-region:no-drag; }
.prospect-hero-home svg { width:21px; height:21px; }
body.auth-ready #projectHome #prospectsModule .prospect-hero-home:hover { background:#ffffff20; border-color:#d6c797; }
.prospect-hero-home:focus-visible { outline:3px solid #d6c797; outline-offset:3px; }
/* Leave only the native window controls their own hit area, without adding a toolbar. */
html.xri-desktop-window-controls-overlay body.prospects-workspace-active .prospects-shell { padding-top:44px; }
@media(prefers-reduced-motion:reduce) { .prospect-hero-home { transition:none!important; } }
.prospect-chat-launchers { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 22px; margin:0 0 20px; border:1px solid #e1e3ed; border-radius:14px; background:linear-gradient(110deg,#fff,#f7f7fc); }
.prospect-chat-launchers strong { font-size:16px; color:#262944; }
.prospect-chat-launchers p { margin:5px 0 0; font-size:13px; color:#677086; line-height:1.5; }
.prospect-chat-launch-buttons { display:flex; gap:12px; flex-shrink:0; }
.prospect-chat-launch-buttons button { display:inline-flex; align-items:center; gap:11px; min-height:54px; min-width:210px; padding:9px 16px 9px 10px; border-radius:12px; font:inherit; font-size:14px; font-weight:700; cursor:pointer; transition:box-shadow .15s,border-color .15s; }
.prospect-chat-openai { background:#fff3eb; color:#943f1e; border:1px solid #ecc5b1; }
.prospect-chat-perplexity { background:#f0ecff; color:#4d369f; border:1px solid #cbc0ed; }
.prospect-chat-launch-icon { display:grid; place-items:center; width:34px; height:34px; flex-shrink:0; border-radius:9px; background:#ffffffc9; }
.prospect-chat-launch-icon svg { width:22px; height:22px; }
.prospect-chat-launch-buttons button:hover { box-shadow:0 4px 12px #28224212; border-color:currentColor; }
.prospect-chat-launch-buttons button:focus-visible { outline:3px solid #8695cd; outline-offset:3px; }
@media(max-width:1100px) { .prospect-chat-launchers { flex-wrap:wrap; }.prospect-chat-launch-buttons { flex-wrap:wrap; }.prospect-chat-launch-buttons button { min-width:190px; } }
@media(max-width:550px) { .prospect-chat-launch-buttons { width:100%; }.prospect-chat-launch-buttons button { width:100%; min-width:0; } }
.prospect-chat-panel { --chat-accent:#ae441a; position:fixed; z-index:2200; inset:90px max(24px,8vw) 100px auto; width:min(820px,calc(100vw - 48px)); display:flex; flex-direction:column; overflow:hidden; border:1px solid #dfdce5; border-radius:22px; background:#fff; color:#26243a; box-shadow:0 24px 90px #1c173c40; }
.prospect-chat-panel[data-provider=perplexity] { --chat-accent:#5741ac; }
.prospect-chat-panel > header { box-sizing:border-box; flex:0 0 126px; height:126px; display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:minmax(0,1fr) 40px; padding:14px 20px; background:linear-gradient(110deg,#26233d,var(--chat-accent)); color:#fff; gap:10px 12px; }
.prospect-chat-identity { min-width:0; }
.prospect-chat-panel > header h2 { color:inherit; margin:0; font-size:21px; line-height:26px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.prospect-chat-panel > header p { color:#ffffffd9; margin:1px 0 0; font-size:12px; line-height:17px; }
.prospect-chat-header-actions { display:flex; align-items:start; gap:8px; }
.prospect-chat-panel > header button:not(.stable-select-button) { display:grid; place-items:center; padding:0; border:1px solid #ffffff60; border-radius:9px; background:#ffffff16; color:#fff; width:36px; height:36px; }
.prospect-chat-panel > header button[hidden] { display:none; }
.prospect-chat-panel > header button:hover { background-color:#ffffff30; }
.prospect-chat-panel button:focus-visible { outline:3px solid #7fcce5; outline-offset:2px; }
.prospect-chat-panel svg { width:21px; height:21px; flex-shrink:0; }
.prospect-chat-tools { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) 40px; align-items:center; gap:10px; min-width:0; }
.prospect-chat-tools label { display:block; min-width:0; margin:0; font-size:12px; font-weight:700; line-height:normal; }
.prospect-chat-panel > header button[data-new] { width:40px; height:40px; }
.prospect-chat-sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.prospect-chat-tools .stable-select { display:block; width:100%; min-width:0; margin:0; }
.prospect-chat-tools .stable-select-button { box-sizing:border-box; min-width:0; width:100%; height:40px; min-height:40px; margin:0; color:#26243a; background:#fff; }
.prospect-chat-panel :is(select,textarea) { width:100%; min-width:0; font:inherit; border:1px solid #d9d1df; border-radius:10px; padding:10px; background:#fff; color:#26243a; }
.prospect-chat-panel button { cursor:pointer; }
.prospect-chat-messages button { border:1px solid #d9d1df; border-radius:9px; padding:10px 14px; background:#faf8fd; color:#26243a; }
.prospect-chat-messages { flex:1; min-height:120px; overflow:auto; overscroll-behavior:contain; padding:20px 24px; background:#f9f8fc; }
.prospect-chat-messages article { padding:18px; border:1px solid #e6e1ed; border-radius:14px; margin-bottom:16px; background:#fff; overflow-wrap:anywhere; }
.prospect-chat-messages article[data-role=user] { margin-left:10%; border-left:4px solid var(--chat-accent); }
.prospect-chat-meta { display:flex; justify-content:space-between; gap:12px; color:var(--chat-accent); font-size:12px; }
.prospect-chat-body { line-height:1.65; }
.prospect-chat-body :is(p,ul,ol) { margin:12px 0; }
.prospect-chat-body :is(ul,ol) { padding-left:22px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body { font-size:14px; line-height:1.6; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body :is(p,ul,ol,li,blockquote,table) { font-size:inherit; line-height:inherit; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body :is(p,ul,ol) { margin-block:8px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body :is(h1,h2,h3,h4,h5,h6) { line-height:1.35; margin-block:14px 8px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body h1 { font-size:20px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body h2 { font-size:18px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body h3 { font-size:16px; }
.prospect-chat-panel[data-layout=popup] .prospect-chat-body :is(h4,h5,h6) { font-size:14px; }
.prospect-chat-panel[data-layout=popup] > form textarea { font-size:14px; }
.prospect-chat-sources { display:flex; flex-wrap:wrap; gap:10px; font-size:12px; }
.prospect-chat-status { margin:0; padding:6px 24px; color:var(--chat-accent); font-size:12px; }
.prospect-chat-status:empty { display:none; }
.prospect-chat-panel > form { display:grid; grid-template-columns:minmax(0,1fr) 48px; align-items:end; gap:12px; padding:12px 20px 16px; border-top:1px solid #ece8f0; margin:0; }
.prospect-chat-panel > form textarea { box-sizing:border-box; height:72px; min-height:48px; max-height:160px; resize:vertical; line-height:1.5; }
.prospect-chat-panel > form button { display:grid; place-items:center; width:48px; height:48px; padding:0; color:#fff; background:var(--chat-accent); border:0; border-radius:12px; }
.prospect-chat-panel button:disabled { opacity:.5; cursor:wait; }
.prospect-chat-empty { padding:30px 10px; text-align:center; }
@media(max-width:650px) { .prospect-chat-panel { inset:76px 8px 88px; width:auto; }.prospect-chat-panel > header { padding-inline:14px; }.prospect-chat-panel > form { padding-inline:14px; gap:8px; } }
.prospect-chat-page-shell { height:calc(100dvh - 70px); min-height:450px; }
.prospect-chat-page-shell > [data-prospect-chat-host] { height:100%; min-width:0; }
.prospect-chat-panel[data-layout=page] { position:relative; z-index:auto; inset:auto; width:100%; height:100%; box-sizing:border-box; box-shadow:0 8px 28px #1c173c10; }
.prospect-chat-panel[data-layout=page] .prospect-chat-messages article { max-width:1060px; margin-inline:auto; }
.prospect-chat-panel[data-layout=page] .prospect-chat-messages article[data-role=user] { max-width:960px; }
.prospect-chat-panel[data-layout=page][data-provider=perplexity] .prospect-chat-messages article { box-sizing:border-box; width:min(88%,1060px); }
.prospect-chat-panel[data-layout=page][data-provider=perplexity] .prospect-chat-messages article[data-role=user] { width:min(82%,960px); margin-inline:0 auto; }
.prospect-chat-panel[data-layout=page][data-provider=perplexity] .prospect-chat-messages article[data-role=assistant] { margin-inline:auto 0; }
@media(max-height:650px) { .prospect-chat-panel:not([data-layout=page]) { top:70px; bottom:16px; }.prospect-chat-messages { min-height:70px; padding:12px; }.prospect-chat-panel > form textarea { height:52px; }.prospect-chat-page-shell { min-height:350px; } }
.prospects-shell {max-width:1700px;margin:auto;padding:26px; color:var(--prospect-ink);}
.prospects-shell { display:flex; flex-direction:column; gap:8px; }
.prospects-shell > .prospect-chat-launchers { margin-block:0; }
.prospect-dossier-main { display:flex; flex-direction:column; gap:8px; min-width:0; }
.prospect-dossier-hero .prospect-hero-actions { display:grid; grid-template-columns:minmax(0,1fr); flex:0 0 200px; width:200px; gap:8px; }
.prospect-dossier-hero .prospect-hero-actions > button { box-sizing:border-box; display:flex; align-items:center; justify-content:center; width:100%; height:44px; margin:0; padding:8px 12px; border-radius:9px; font-size:13px; }
.prospect-dossier-hero .prospect-dossier-title { gap:20px; margin:14px 0; }
.prospect-dossier-hero .prospect-dossier-title .prospect-logo { width:84px; height:84px; flex-basis:84px; border-radius:16px; }
.prospect-dossier-hero .prospect-dossier-title h2 { font-size:clamp(32px,3vw,44px); line-height:1.15; overflow-wrap:anywhere; }
@media(max-width:600px) { .prospect-dossier-hero .prospect-hero-actions { width:100%; flex-basis:100%; max-width:none; }.prospect-dossier-hero .prospect-dossier-title .prospect-logo { width:68px; height:68px; flex-basis:68px; } }
.prospect-hero .text-button {border:1px solid #ffffff36;border-radius:8px;background:#ffffff0a;padding:8px 12px;font:inherit;font-size:12px;}
.prospect-hero {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 34px;border-radius:20px;background:linear-gradient(115deg,#252643,#3e4277);color:#fff;box-shadow:0 12px 32px #20234715;}
.prospect-hero h2 {font-size:34px;margin:6px 0 10px;color:white;}.prospect-hero p {max-width:670px;color:#e0e3fb;}.prospect-hero .eyebrow {color:#dbc199;letter-spacing:.12em;}.prospect-hero .text-button {color:#fff;}.prospect-hero-actions {display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;max-width:380px;}
.prospects-shell .primary-button,.prospect-dialog .primary-button {background:#5759ba;color:#fff;border:1px solid #6466cd;box-shadow:none;}.prospects-shell button {cursor:pointer;}.prospects-shell button:focus-visible,.prospect-dialog button:focus-visible {outline:3px solid #bd922f;outline-offset:3px;}
.prospect-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0;}.prospect-metrics>div {background:white;border:1px solid #e1e4ee;border-radius:12px;padding:20px 24px;display:flex;flex-direction:column;gap:4px;}.prospect-metrics strong {font-size:28px;color:#393a77;}.prospect-metrics span {font-size:13px;color:#657086;}
.prospect-surface {padding:22px;background:#f9fafc;border:1px solid #e1e5ef;border-radius:16px;}.prospect-filter {display:grid;grid-template-columns:minmax(180px,1fr) 200px 200px;gap:14px;margin-bottom:22px;}.prospect-filter label,.prospect-dialog label {display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:12px;}.prospect-filter input,.prospect-filter select,.prospect-dialog input:not([type=checkbox]),.prospect-dialog select,.prospect-dialog textarea {width:100%;min-width:0;border:1px solid #d6dae7;border-radius:9px;padding:11px 12px;background:white;color:#212844;font:inherit;font-size:14px;box-sizing:border-box;}
.prospect-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}.prospect-card {border:1px solid #dde1ee;background:#fff;border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:15px;min-width:0;}.prospect-card header,.prospect-dossier-title {display:flex;align-items:center;gap:14px;}.prospect-card header>div {min-width:0;}.prospect-card h3 {font-size:19px;margin:7px 0 4px;overflow-wrap:anywhere;}.prospect-card p {margin:0;color:#657086;font-size:13px;}.prospect-logo {display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border-radius:12px;background:#fff;border:1px solid #e0e3eb;color:#5a5c91;font-weight:700;overflow:hidden;}.prospect-logo img {width:100%;height:100%;object-fit:contain;padding:5px;box-sizing:border-box;}.prospect-stage {background:#eff0fa;border:1px solid #e2e2f2;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:700;color:#5952a0;}.prospect-stage[data-stage=won] {background:#e5f6ed;color:#236c50;}.prospect-stage[data-stage=proposal] {background:#fff3dc;color:#80601a;}
.prospect-next {display:flex;flex-direction:column;gap:8px;padding:15px;background:#f5f5fb;border-left:3px solid #a3a2d3;border-radius:4px;}.prospect-next>span {font-size:10px;letter-spacing:.06em;color:#646387;}.prospect-next strong {font-size:14px;line-height:1.5;}.prospect-next small {font-size:12px;color:#74758a;}.prospect-card-counts {display:flex;flex-wrap:wrap;gap:9px;font-size:12px;color:#626880;}.prospect-card footer {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid #eef0f5;}.prospect-card footer>span {font-size:11px;color:#667187;max-width:140px;}.prospect-card footer button {font-size:12px;white-space:nowrap;}
.prospect-workspace {display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px;align-items:start;}.prospect-sections {position:sticky;top:85px;display:flex;flex-direction:column;background:white;border:1px solid #e1e5ee;border-radius:12px;padding:8px;}.prospect-sections button {display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;background:transparent;text-align:left;padding:12px 10px;border-radius:7px;font:inherit;font-size:13px;color:#546079;}.prospect-sections button.is-active {background:#edecfa;color:#4b4796;font-weight:700;}.prospect-sections button span {font-size:11px;padding:2px 6px;background:#f3f4f8;border-radius:5px;}.prospect-focus {background:linear-gradient(110deg,#f0effa,#f9f7f2);border:1px solid #e1dfed;border-radius:14px;padding:24px;}.prospect-focus h3 {font-size:20px;}.prospect-focus p {line-height:1.7;}.prospect-focus small {color:#74798c;}.prospect-related-section {margin:24px 0;}.prospect-related-section>header {display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #dce0ea;padding-bottom:12px;margin-bottom:14px;}.prospect-related-section h3 {margin:0;font-size:18px;}.prospect-related-section>header>span {font-size:12px;color:#747d91;}.prospect-linked-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.prospect-linked {display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:18px;border:1px solid #e0e3ed;border-radius:10px;background:#fff;color:#26334c;text-align:left;font:inherit;min-width:0;}.prospect-linked:hover {border-color:#9d9eca;box-shadow:0 4px 12px #34345b0d;}.prospect-linked strong {font-size:15px;overflow-wrap:anywhere;}.prospect-linked p {font-size:13px;line-height:1.6;margin:0;color:#606d81;white-space:pre-wrap;}.prospect-item-label {font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#706ba0;}.prospect-item-footer {display:flex;justify-content:space-between;font-size:11px;color:#7e8496;margin-top:auto;}.prospect-empty {grid-column:1/-1;text-align:center;padding:45px;}.prospect-empty-section {color:#81899a;font-size:13px;padding:10px 0;}.prospect-error {background:#fff2eb;padding:15px;border-radius:10px;margin-bottom:16px;color:#843d27;}
.prospect-dialog {border:1px solid #d9ddec;border-radius:18px;padding:26px;width:min(600px,calc(100vw - 36px));max-height:85vh;color:#26334c;box-shadow:0 24px 100px #171d4644;}.prospect-dialog::backdrop {background:#121a355e;}.prospect-dialog form {display:flex;flex-direction:column;gap:16px;}.prospect-dialog header {display:flex;align-items:start;justify-content:space-between;gap:14px;}.prospect-dialog h2 {margin:5px 0;font-size:24px;}.prospect-dialog [data-close] {cursor:pointer;}.prospect-dialog header button {background:#f1f2f8;border:0;border-radius:8px;font-size:22px;width:32px;height:32px;}.prospect-dialog fieldset {border:1px solid #e2e4ed;border-radius:10px;padding:12px;}.prospect-dialog legend {font-size:12px;}.prospect-contact-options {max-height:180px;overflow:auto;margin-top:8px;}.prospect-contact-options label {flex-direction:row;align-items:center;padding:9px;gap:10px;}.prospect-contact-options label[hidden] {display:none;}.prospect-contact-options input {width:17px;height:17px;flex:0 0 17px;}.prospect-contact-options span {display:flex;flex-direction:column;gap:4px;}.prospect-contact-options small {font-weight:400;color:#747c8c;}.prospect-form-row {display:grid;grid-template-columns:1fr 1fr;gap:14px;}.prospect-dialog footer {display:flex;justify-content:flex-end;gap:10px;}.prospect-dialog [data-error] {color:#a33737;margin:0;font-size:13px;}
.prospect-contact-hint{font-size:12px;line-height:1.6;color:#69758b;margin:0 0 8px}.prospect-dialog [data-no-matches]{font-size:12px;color:#69758b}.prospect-contact-options [data-contact-option]{display:flex}.prospect-contact-options [data-contact-option][hidden]{display:none}
.prospect-linked-card{position:relative;min-width:0;display:flex}.prospect-linked-card>.prospect-linked{width:100%;height:100%}.prospect-linked-card:has(.prospect-unlink)>.prospect-linked{padding-right:48px}.prospect-unlink{position:absolute;top:12px;right:12px;width:27px;height:27px;min-height:27px;min-width:27px;padding:0;border:1px solid #e2dfeb;border-radius:50%;background:#faf9fc;color:#7a7492;display:grid;place-items:center;font-size:19px;cursor:pointer}.prospect-unlink:hover{background:#fceef0;border-color:#e4bbc2;color:#9a3f50}
.prospect-related-section .scratchpad-link-button{background:#f3f0fa;border-color:#e1daef;color:#6252a1}
@media(max-width:1200px){.prospect-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.prospect-filter{grid-template-columns:minmax(150px,1fr) 160px 160px;}}
@media(max-width:850px){.prospects-shell{padding:16px;}.prospect-hero{padding:22px;flex-wrap:wrap;}.prospect-workspace{grid-template-columns:1fr;}.prospect-sections{position:static;flex-direction:row;overflow:auto;}.prospect-sections button{flex-shrink:0;}.prospect-metrics>div{padding:15px;}.prospect-filter{grid-template-columns:1fr 1fr;}.prospect-filter label:first-child{grid-column:1/-1;}}
@media(max-width:600px){.prospect-grid,.prospect-linked-grid{grid-template-columns:1fr;}.prospect-metrics{grid-template-columns:1fr 1fr;}.prospect-hero h2{font-size:27px;}.prospect-surface{padding:14px;}.prospect-dossier-title{align-items:flex-start;}.prospect-form-row{grid-template-columns:1fr;}}
