html .workspace[data-view=customer_prospecting] #main{--bg:#eff6f5;--panel:#fff;--input:#fff;--text:#193940;--muted:#668087;--border:#c8dedf;--soft:#e8f4f3;--selection-cyan:#008b91;background:var(--bg);color:var(--text)}
html[data-theme=dark] .workspace[data-view=customer_prospecting] #main{--bg:#00191f;--panel:#05252d;--input:#03232b;--text:#e8f4f6;--muted:#9ab8c0;--border:#14525d;--soft:#09343d;--selection-cyan:#27c4c7;--accent:#edc57d;--accent-button-ink:#202820;background:radial-gradient(ellipse at 80% 5%,#06414a55,transparent 55%),var(--bg)}
#prospect-workspace{max-width:1800px;margin:auto;position:relative}
#prospect-workspace svg{width:17px;height:17px;flex-shrink:0}
.prospect-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:23px}.prospect-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted)}.prospect-heading h1{margin:5px 0 7px;font-size:28px}.prospect-heading p{margin:0;color:var(--muted);font-size:13px}.prospect-import-date{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);white-space:nowrap}
.prospect-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.prospect-summary>div{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;gap:3px 12px;background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:17px 20px}.prospect-summary svg{grid-row:1/3;align-self:center;color:var(--accent);width:25px!important;height:25px!important}.prospect-summary span{font-size:11px;color:var(--muted)}.prospect-summary strong{font-size:27px;line-height:1.2;letter-spacing:-.5px}
#prospect-workspace .prospect-filters{padding:17px;display:grid;grid-template-columns:1.6fr 1.2fr 1.2fr 1fr .65fr auto;gap:12px;align-items:end;margin-bottom:12px}.prospect-filters label{min-width:0;font-size:11px}.prospect-filters :is(input,select,.control-trigger){height:40px;min-height:40px;font-size:12px}.prospect-filters button.secondary{min-height:40px;font-size:11px;padding-inline:12px}.prospect-source-note{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;line-height:1.6;margin:0 0 22px}
.prospect-results-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.prospect-results-title h2{font-size:16px;display:flex;align-items:center;gap:9px}.prospect-results-title h2 span{background:var(--active);color:var(--accent-ink);padding:2px 9px;border-radius:6px;font-size:12px}.prospect-results-title small{font-size:11px;color:var(--muted)}
#prospect-workspace .prospect-table-scroll{overflow:auto;margin-bottom:12px;max-height:65vh;scrollbar-width:thin;overscroll-behavior:contain}.prospect-table{min-width:920px;font-size:12px;table-layout:fixed}.prospect-table th{position:sticky;top:0;z-index:1;background:var(--panel);box-shadow:0 1px var(--border)}#main .prospect-table :is(th,td){text-align:left!important;vertical-align:top!important;padding:15px 16px;line-height:1.55}.prospect-table th:first-child{width:24%}.prospect-table th:nth-child(2){width:19%}.prospect-table th:nth-child(3){width:24%}.prospect-table th:nth-child(4){width:13%}.prospect-table th:nth-child(5){width:11%}.prospect-table th:nth-child(6){width:11%}.prospect-table tbody tr{cursor:pointer}.prospect-table tbody tr:hover{background:var(--soft)}.prospect-table td small{font-size:10px;color:var(--muted);line-height:1.6;margin-top:5px}.prospect-company{font-weight:650;text-align:left;padding:0;display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.55;color:var(--text);overflow-wrap:anywhere}.prospect-company svg{width:13px!important;color:var(--muted)}.prospect-company:hover{color:var(--accent-ink)}.prospect-city{display:flex;align-items:start;gap:5px;overflow-wrap:anywhere}.prospect-city svg{width:13px!important;height:17px!important;color:var(--muted)}.prospect-contact{display:flex;align-items:center;gap:7px;line-height:1.6;margin-bottom:4px;font-size:12px;overflow-wrap:anywhere}.prospect-contact svg{width:13px!important;height:13px!important;color:var(--accent-ink)}.prospect-contact:hover span{text-decoration:underline}.prospect-no-phone{font-size:11px;color:var(--muted)}.prospect-segment{font-size:11px}.prospect-priority,.prospect-status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:6px;font-size:10px;background:var(--soft);color:var(--muted)}.prospect-priority.p1{background:color-mix(in srgb,var(--accent) 17%,var(--panel));color:var(--accent-ink);font-weight:600}.prospect-priority.p2{background:color-mix(in srgb,var(--success) 9%,var(--panel));color:var(--success)}.prospect-status{border:1px solid var(--border);white-space:nowrap}.prospect-muted{color:var(--muted)}.prospect-empty{padding:40px;text-align:center;font-size:13px}.prospect-empty button{margin:15px}.prospect-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:var(--muted)}.prospect-footer>div{display:flex;gap:13px;align-items:center}.prospect-footer .secondary{font-size:11px;min-height:35px}
.prospect-detail{position:fixed;right:22px;top:calc(var(--header-height) + 18px);bottom:20px;width:min(560px,calc(100vw - 110px));max-width:100%;z-index:9;background:var(--panel);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 70px #0005;overflow:auto;overscroll-behavior:contain;padding:21px}.prospect-detail-top{display:flex;justify-content:space-between;align-items:center;gap:15px;color:var(--muted);font-size:11px}.prospect-detail-top .secondary{padding:6px;min-height:32px;width:32px}.prospect-detail header{padding:15px 0 20px;border-bottom:1px solid var(--border)}.prospect-detail h2{font-size:22px;line-height:1.35;overflow-wrap:anywhere}.prospect-detail header p{font-size:12px;color:var(--muted);margin:10px 0}.prospect-detail header>div{display:flex;gap:8px}.prospect-detail-contacts{padding:17px 0;border-bottom:1px solid var(--border)}.prospect-detail h3{font-size:12px;margin:0 0 12px}.prospect-detail dl{margin:0}.prospect-detail dl>div{padding:13px 0;border-bottom:1px solid var(--border)}.prospect-detail dt{font-size:10px;color:var(--muted);margin-bottom:5px}.prospect-detail dd{margin:0;font-size:12px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}.prospect-source-link{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--accent-ink)}.prospect-source-link small{color:var(--muted);font-size:10px}.prospect-detail footer{padding-top:20px;font-size:10px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
@media(max-width:1250px){#prospect-workspace .prospect-filters{grid-template-columns:repeat(3,1fr)}.prospect-summary>div{padding:15px}.prospect-results-title{align-items:start;flex-direction:column;gap:4px}}
@media(max-width:720px){.prospect-heading{align-items:start;flex-direction:column;gap:12px}.prospect-heading h1{font-size:23px}.prospect-summary{grid-template-columns:repeat(2,1fr);gap:9px}.prospect-summary>div{padding:12px;grid-template-columns:23px 1fr;gap:4px 9px}.prospect-summary svg{width:20px!important}.prospect-summary span{font-size:9px}.prospect-summary strong{font-size:23px}#prospect-workspace .prospect-filters{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.prospect-search{grid-column:1/-1}.prospect-detail{right:10px;bottom:10px;top:calc(var(--header-height) + 10px);width:calc(100vw - 84px);padding:15px}.prospect-detail h2{font-size:19px}.prospect-footer{flex-wrap:wrap}}

#prospect-workspace .prospect-table-scroll{background:var(--panel);border:1px solid var(--border);border-radius:10px;box-shadow:none}
#main .prospect-table :is(th,td){padding:12px 13px;line-height:1.5;border-bottom:1px solid var(--border)}
#main .prospect-table th{font-size:10px;color:var(--muted);font-weight:600;padding-block:10px;background:var(--panel)}
#main .prospect-table td{font-size:11px;background:transparent}
.prospect-company{font-size:12px}.prospect-contact{font-size:11px}.prospect-company:hover{color:var(--selection-cyan)}
.prospect-city svg,.prospect-contact svg{color:var(--selection-cyan)}
.prospect-results-title h2 span{background:color-mix(in srgb,var(--selection-cyan) 17%,var(--panel));color:var(--selection-cyan)}
.prospect-summary>div{border-radius:10px;box-shadow:none;padding:13px 17px}.prospect-summary strong{font-size:24px}
.prospect-filters{border-radius:10px;background:var(--panel);box-shadow:none}

/* Keep the directory aligned with the workspace and the card below both toolbars. */
html .workspace[data-view=customer_prospecting] #main{max-width:none;width:100%;padding:24px 28px;box-sizing:border-box}
#prospect-workspace{max-width:none;margin:0;width:100%;min-width:0}
#prospect-workspace .prospect-filters{margin-bottom:22px}
#main .prospect-table :is(th,td){text-align:center!important;vertical-align:middle!important}
.prospect-table :is(.prospect-company,.prospect-city,.prospect-contact){justify-content:center;text-align:center}
.prospect-table td small{display:block}.prospect-table th:nth-child(5){width:14%}.prospect-table th:first-child{width:23%}.prospect-table th:nth-child(3){width:22%}
.prospect-table tbody tr.prospect-unread .prospect-company{font-weight:750}
.prospect-table tbody tr.prospect-viewed .prospect-company{font-weight:500}
.prospect-table tbody tr.prospect-transferred{background:color-mix(in srgb,var(--selection-cyan) 12%,var(--panel))}
.prospect-transferred td:first-child{box-shadow:inset 3px 0 var(--selection-cyan)}
.prospect-transferred .prospect-status{color:var(--selection-cyan);border-color:var(--selection-cyan)}
.prospect-detail{top:calc(var(--header-height,88px) + 70px);z-index:12;max-height:calc(100dvh - 180px);box-sizing:border-box}
.prospect-work{padding:20px 0;border-bottom:1px solid var(--border)}
.prospect-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.prospect-actions button{min-height:38px;font-size:12px}
.prospect-assigned{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--selection-cyan)}
#prospect-edit-form{display:grid;gap:14px;margin-top:18px}#prospect-edit-form[hidden]{display:none}
#prospect-edit-form label{display:grid;gap:6px;font-size:12px}#prospect-edit-form :is(input,textarea,select){width:100%;box-sizing:border-box;font-size:13px}
#prospect-edit-form textarea{resize:vertical}#prospect-edit-form [role=alert]{color:var(--danger);font-size:12px;margin:0}
@media(max-width:720px){html .workspace[data-view=customer_prospecting] #main{padding:16px 12px}.prospect-detail{width:calc(100vw - 84px);max-height:calc(100dvh - 180px)}}

/* A side drawer attached to the right edge, below the quick access toolbar. */
#prospect-detail.prospect-detail{right:0;bottom:0;max-height:none;width:min(600px,calc(100vw - 84px));border-radius:0;border-right:0;border-bottom:0;animation:prospect-slide-in .18s ease-out}
.prospect-detail-top{justify-content:flex-end;gap:12px}.prospect-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.prospect-header-actions>.primary{min-height:36px;font-size:12px;padding:8px 14px}.prospect-header-actions .prospect-edit-icon{display:grid;place-items:center;width:36px;min-height:36px;padding:8px}
.prospect-table .prospect-company{width:100%;gap:10px}.prospect-table .prospect-company svg{flex-shrink:0}
@keyframes prospect-slide-in{from{transform:translateX(35px);opacity:.5}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){#prospect-detail.prospect-detail{animation:none}}
