/* Scoped to Prospección; inherits ALEPH's day/night and company appearance tokens. */
#nav-prospecting{margin:2px 0 18px}#nav-prospecting[hidden],.prospect-rail-button[hidden]{display:none!important}.prospect-nav-mark{width:16px;font-size:19px;line-height:1}.prospect-rail-button{font-size:21px}
.prospect-dialog,.prospect-detail{color:var(--ink,#232c34);background:var(--paper,#f7f7f4);font-family:var(--sans,sans-serif);border:1px solid var(--line,#e4e6e4);border-radius:14px;box-shadow:0 24px 90px #0005;padding:0;overscroll-behavior:contain}
.prospect-dialog{width:min(1280px,calc(100vw - 40px));height:min(900px,calc(100dvh - 40px));max-width:none;max-height:none;overflow:auto}
.prospect-dialog::backdrop,.prospect-detail::backdrop{background:#17212b99;backdrop-filter:blur(3px)}
.prospect-dialog[open]{display:flex;flex-direction:column}.prospect-dialog [hidden],.prospect-detail [hidden]{display:none!important}
.prospect-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:25px 28px 20px;border-bottom:1px solid var(--line);background:var(--card)}
.prospect-header h2{font:500 30px/1.2 var(--serif,serif);letter-spacing:-.6px}.prospect-eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}.prospect-subtitle{font-size:12px;color:var(--muted);margin-top:7px}
.prospect-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.prospect-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;line-height:1.3;font-size:12px;font-weight:500;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--ink);text-align:center;white-space:normal}.prospect-button:hover{background:var(--soft);border-color:var(--steel,#798690)}.prospect-button.is-primary{background:var(--ui-accent,#38546b);color:var(--ap-onAccent,#fff);border-color:var(--ui-accent,#38546b)}.prospect-button.is-primary:hover{filter:brightness(1.12)}.prospect-button.is-quiet{border-color:transparent;background:transparent;color:var(--muted)}.prospect-button.is-danger{color:var(--danger,#a1443b);border-color:var(--danger,#a1443b)}.prospect-button:disabled{filter:none;opacity:.5;cursor:not-allowed}
.prospect-notice{margin:16px 28px 0;padding:11px 14px;font-size:13px;line-height:1.5;border:1px solid var(--line);border-left:3px solid var(--ui-accent);border-radius:6px;background:var(--card)}.prospect-notice.is-error{border-left-color:var(--danger);color:var(--danger)}
.prospect-health{display:flex;justify-content:space-between;gap:20px;padding:16px 28px;font-size:11px;color:var(--muted);border-bottom:1px solid var(--line)}.prospect-health-main{display:grid;gap:4px;max-width:65ch}.prospect-health-main strong{font-weight:600;color:var(--ink)}.prospect-health-detail{display:grid;gap:3px;text-align:right;font-variant-numeric:tabular-nums}.prospect-health-detail small{font-size:10px}
.prospect-tabs{display:flex;gap:7px;padding:10px 28px 0;background:var(--paper);border-bottom:1px solid var(--line);flex-shrink:0}.prospect-tab{border:0;border-radius:0;background:transparent;min-height:42px;color:var(--muted);padding:10px 14px;border-bottom:2px solid transparent}.prospect-tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ui-accent)}
.prospect-pane{padding:22px 28px 30px;min-height:180px;outline-offset:-4px;flex:1;overflow:visible}.prospect-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.prospect-list-heading h3{font-size:16px}.prospect-filter{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.prospect-filter select{padding:8px 30px 8px 10px;max-width:350px;min-height:36px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--ink)}
.prospect-campaign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.prospect-card{padding:20px;border:1px solid var(--line);border-radius:10px;background:var(--card);min-width:0}.prospect-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:7px}.prospect-card h3{font-size:15px;font-weight:550;overflow-wrap:anywhere;line-height:1.4}.prospect-company{font-size:11px;letter-spacing:.02em;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.prospect-mode{display:flex;gap:10px;align-items:center;margin:17px 0 7px;font-size:13px}.prospect-muted{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.prospect-policy{font-size:12px;margin:17px 0 3px}.prospect-test-note{font-size:11px;color:var(--muted);margin-top:12px;overflow-wrap:anywhere}.prospect-card>.prospect-actions{margin-top:18px}.prospect-badge{display:inline-flex;align-items:center;font-size:10px;line-height:1.3;letter-spacing:.025em;font-weight:600;padding:5px 7px;border-radius:5px;border:1px solid var(--line);background:var(--soft);color:var(--muted);flex-shrink:0}.prospect-badge.is-positive{color:var(--ui-accent);border-color:var(--ui-accent)}.prospect-badge.is-alert{color:var(--danger);border-color:var(--danger)}
.prospect-empty{padding:40px 24px;text-align:center;border:1px dashed var(--line);border-radius:10px;background:var(--card);max-width:760px;margin:20px auto}.prospect-empty h3{font-size:17px;margin-bottom:10px}.prospect-empty p{max-width:65ch;margin:auto;font-size:13px;color:var(--muted);line-height:1.7}.prospect-stack{display:grid;gap:12px}.prospect-contact,.prospect-message{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center}.prospect-contact>.prospect-actions,.prospect-message>.prospect-actions{margin-top:0;justify-content:flex-end;max-width:310px}.prospect-contact p,.prospect-message p{overflow-wrap:anywhere}.prospect-count{font-size:11px;color:var(--muted);margin-bottom:12px}.prospect-linked{font-size:11px;margin-top:7px;color:var(--ui-accent)}.prospect-warning{color:var(--warning,#8b672e);font-size:12px;margin-top:8px;line-height:1.6}
.prospect-detail{width:min(850px,calc(100vw - 64px));max-width:none;max-height:calc(100dvh - 64px);overflow:auto}.prospect-detail-head{position:sticky;top:0;z-index:1;background:var(--card);padding:16px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.prospect-detail-head h3{font-size:18px}.prospect-detail-body{padding:20px 22px 24px}.prospect-detail-body>h3{margin-bottom:5px}.prospect-detail-body>.prospect-badge{margin:12px 0}.prospect-detail-body>h4{margin:25px 0 12px}.prospect-editor{width:min(940px,calc(100vw - 64px))}.prospect-hint{font-size:12px;line-height:1.65;color:var(--muted);margin:8px 0 16px}.prospect-form{display:grid;gap:18px}.prospect-fieldset{border:1px solid var(--line);border-radius:8px;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.prospect-fieldset>legend{padding:0 7px;font-size:13px;font-weight:600}.prospect-field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;min-width:0}.prospect-field input,.prospect-field textarea,.prospect-field select{border:1px solid var(--line);border-radius:6px;padding:9px 11px;min-height:39px;color:var(--ink);background:var(--card);font-size:13px;font-weight:400;width:100%}.prospect-field textarea{resize:vertical;line-height:1.6}.prospect-field input:read-only{background:var(--soft)}.prospect-field small{font-size:11px;font-weight:400;line-height:1.5;color:var(--muted)}.prospect-form .is-wide{grid-column:1/-1}.prospect-weekdays{display:flex;flex-wrap:wrap;gap:10px 15px;border:0;padding:0;margin:0;min-width:0}.prospect-weekdays legend{font-size:12px;padding:0;margin-bottom:10px}.prospect-check{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6}.prospect-check input{margin:3px 0 0;width:16px;height:16px;accent-color:var(--ui-accent);flex-shrink:0}.prospect-mode-note{font-size:12px;color:var(--muted);line-height:1.65;align-self:center}.prospect-form-error{color:var(--danger);font-size:13px;border:1px solid var(--danger);border-radius:6px;padding:10px 12px;margin-bottom:15px}.prospect-form-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:6px}.prospect-reference{font-size:11px;line-height:1.6}.prospect-link{color:var(--ui-accent);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.prospect-definitions{margin:18px 0;display:grid;gap:14px}.prospect-definition{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px}.prospect-definition dt{font-size:11px;color:var(--muted)}.prospect-definition dd{margin:0;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.prospect-body{font:400 13px/1.8 var(--sans,sans-serif);white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0;color:var(--ink)}.prospect-exact{padding:22px;background:var(--card);border:1px solid var(--line);border-radius:8px}.prospect-hash{display:grid;gap:6px;font-size:10px;color:var(--muted);margin:16px 0}.prospect-hash code{overflow-wrap:anywhere;font-size:11px;letter-spacing:.02em}.prospect-detail .is-error{color:var(--danger)}.prospect-review .prospect-actions{justify-content:flex-end;margin:20px 0 12px}.prospect-inbound{padding:14px 16px;background:var(--card);border:1px solid var(--line);border-radius:7px;margin:10px 0}.prospect-inbound small{display:block;color:var(--muted);margin-top:4px}
.prospect-timeline{list-style:none;padding:0;margin:0;display:grid;gap:0}.prospect-event{position:relative;padding:0 0 23px 23px;border-left:1px solid var(--line);margin-left:7px}.prospect-event:before{content:"";position:absolute;left:-4px;top:9px;width:7px;height:7px;border-radius:50%;background:var(--steel)}.prospect-event time{margin-left:10px;font-size:10px}.prospect-event p{font-size:12px;margin-top:7px;overflow-wrap:anywhere}.prospect-event-code{display:block;margin-top:7px;font-size:11px;color:var(--danger)}
@media(max-width:900px){.prospect-campaign-grid{grid-template-columns:1fr}.prospect-contact,.prospect-message{grid-template-columns:1fr;gap:12px}.prospect-contact>.prospect-actions,.prospect-message>.prospect-actions{justify-content:flex-start;max-width:none}.prospect-header{padding:20px}.prospect-pane{padding:20px}.prospect-health{padding:14px 20px}.prospect-tabs{padding-left:20px;padding-right:20px}.prospect-notice{margin-left:20px;margin-right:20px}}
@media(max-width:600px){.prospect-dialog{width:100vw;height:100dvh;border-radius:0;border:0}.prospect-detail,.prospect-editor{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.prospect-header{padding:16px;gap:12px}.prospect-header h2{font-size:25px}.prospect-header .prospect-actions{gap:4px;justify-content:flex-end}.prospect-subtitle{max-width:25ch}.prospect-health{display:grid;gap:10px;padding:12px 16px}.prospect-health-detail{text-align:left}.prospect-pane{padding:16px}.prospect-tabs{padding:4px 8px 0;gap:0}.prospect-tab{flex:1;padding:10px 6px;font-size:11px}.prospect-notice{margin-left:16px;margin-right:16px}.prospect-fieldset{grid-template-columns:1fr;padding:12px}.prospect-detail-body{padding:16px}.prospect-detail-head{padding:12px 16px}.prospect-definition{grid-template-columns:1fr;gap:4px}.prospect-card{padding:16px}.prospect-card-head{flex-wrap:wrap;gap:8px}.prospect-list-heading{align-items:flex-start}.prospect-filter{flex-wrap:wrap}.prospect-filter select{max-width:100%;width:100%}.prospect-exact{padding:15px}.prospect-empty{padding:28px 16px}.prospect-form-footer{position:sticky;bottom:-16px;background:var(--paper);padding:12px 0;border-top:1px solid var(--line)}}
@media(prefers-reduced-motion:reduce){.prospect-dialog *,.prospect-detail *{transition:none!important;scroll-behavior:auto!important}}

html[data-aleph-theme="night"] .prospect-dialog,html[data-aleph-theme="night"] .prospect-detail{--danger:#f09397;--warning:#e7c072}

/* Research is shown beside the exact outgoing draft, never as executable content. */
.prospect-research{margin:20px 0 24px;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}
.prospect-research>h4{font-size:14px;font-weight:600}.prospect-research>.prospect-hint{margin:8px 0 13px}.prospect-research .prospect-definitions{margin:18px 0}.prospect-research-reasons{padding-left:20px;margin:10px 0;font-size:12px;color:var(--warning);line-height:1.65}
.prospect-simulation-note{display:block;margin:12px 0;padding:10px 12px;border:1px solid var(--warning);border-radius:6px;color:var(--warning);font-size:12px;font-weight:600}
.prospect-research-sources{list-style:decimal;padding-left:19px;margin:12px 0 0;display:grid;gap:16px}.prospect-research-source{padding-left:3px;min-width:0}.prospect-research-source>a,.prospect-research-source>span{font-size:12px;font-weight:500}.prospect-source-url{font-size:10px;color:var(--muted);overflow-wrap:anywhere;margin:4px 0}.prospect-research-source>small{display:block;font-size:10px}.prospect-source-excerpt{margin:9px 0 0;padding:10px 12px;border-left:2px solid var(--line);background:var(--card);font:400 12px/1.65 var(--sans,sans-serif);white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.prospect-research{padding:13px}.prospect-research .prospect-definition{gap:5px}.prospect-source-excerpt{padding:9px 10px}}

.prospect-project-identity{font-size:12px;font-weight:550;margin:12px 0 3px;overflow-wrap:anywhere}.prospect-card>.prospect-link{display:inline-block;font-size:11px;margin-bottom:6px}

/* Individual access controls remain readable on narrow screens. */
.prospect-access-user{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.prospect-access-user h4,.prospect-access-user p{margin:.35rem 0;overflow-wrap:anywhere}
.prospect-tabs [hidden]{display:none!important}
@media(max-width:600px){.prospect-access-user{align-items:stretch;flex-direction:column}}
/* Workspace additions are scoped; untrusted content remains text-only. */
.prospect-search-tools{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:16px 0}.prospect-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px}.prospect-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.prospect-table caption{text-align:left}.prospect-table th{background:var(--soft);font-weight:600;white-space:nowrap}.prospect-table th,.prospect-table td{padding:12px;vertical-align:top;border-bottom:1px solid var(--line);max-width:250px;overflow-wrap:anywhere}.prospect-table td small,.prospect-table td a{display:block;margin-top:7px}.prospect-table-actions{min-width:150px}.prospect-table-actions button{margin:3px 0}.prospect-knowledge{margin:15px 0}.prospect-knowledge small{display:block;margin:10px 0}.prospect-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.prospect-tabs{overflow-x:auto}.prospect-tab{white-space:nowrap;flex-shrink:0}@media(max-width:600px){.prospect-search-tools{grid-template-columns:1fr}.prospect-table{font-size:11px}.prospect-table th,.prospect-table td{padding:9px}}

/* Native preview lifecycle: current action and archived observations. */
#aleph-prospecting .prospect-budget { padding: 1rem; border: 1px solid var(--border, #cbd5e1); border-radius: .75rem; margin: .75rem 0 1rem; }
#aleph-prospecting .prospect-budget h4 { margin-top: 0; }
#aleph-prospecting .prospect-preview-history,
#aleph-prospecting .prospect-native-audit { margin: .8rem 0; padding: .75rem; border: 1px solid var(--border, #cbd5e1); border-radius: .5rem; }
#aleph-prospecting .prospect-preview-history > summary,
#aleph-prospecting .prospect-native-audit > summary { cursor: pointer; font-weight: 600; }
#aleph-prospecting .prospect-preview-history .prospect-card { margin-bottom: .5rem; }
#aleph-prospecting .prospect-native-audit p { overflow-wrap: anywhere; }

#nav-prospecting{margin:0 0 6px;text-decoration:none}
body.gf-active #main-content > :not(#aleph-prospecting){display:none!important}
#aleph-prospecting[hidden],#aleph-prospecting [hidden]{display:none!important}
#aleph-prospecting{--gf-accent:var(--ui-accent,#28586a);--gf-rule:var(--line,#cfdbdb);min-width:0;max-width:1120px;margin:0 auto;padding:clamp(16px,3vw,42px) clamp(8px,2.4vw,32px) 52px;color:var(--ink,#172d35);font-family:var(--sans,Arial,sans-serif)}
#aleph-prospecting .prospect-header{background:transparent;padding:0 0 14px;align-items:center;border-color:var(--gf-rule);gap:10px;flex-wrap:wrap}
#aleph-prospecting .prospect-header h1{font:600 17px/1.3 var(--sans,sans-serif);margin:0;letter-spacing:0}
#aleph-prospecting .prospect-pane{display:block;overflow:visible;padding:0;min-height:0;outline-offset:4px}
#aleph-prospecting .prospect-tabs,#aleph-prospecting .prospect-health{flex-wrap:wrap;position:static}
#aleph-prospecting .prospect-notice{margin:16px 0}
#aleph-prospecting .gf-page-title{font:500 clamp(33px,4vw,52px)/1.08 var(--serif,Georgia,serif);letter-spacing:-.036em;margin:clamp(22px,3.6vw,44px) 0 24px}
#aleph-prospecting .gf-brief{font-size:clamp(24px,2.7vw,38px);margin:10px 0 22px;overflow-wrap:anywhere}
#aleph-prospecting .gf-title{font:500 clamp(24px,2.5vw,34px)/1.16 var(--serif,Georgia,serif);letter-spacing:-.025em;margin:0 0 22px}
#aleph-prospecting .gf-sub{font:600 19px/1.35 var(--sans,sans-serif);margin:10px 0 16px}
#aleph-prospecting .gf-card{border:1px solid var(--gf-rule);background:var(--card,#fff);border-radius:14px;padding:clamp(20px,3vw,36px);min-width:0;box-shadow:0 4px 20px #152c3710}
#aleph-prospecting .gf-start{border-top:3px solid var(--gf-accent)}
#aleph-prospecting .gf-form{display:grid;gap:17px}
#aleph-prospecting .prospect-field{font-size:14px;line-height:1.45;text-transform:none;letter-spacing:0;font-weight:550;min-width:0}
#aleph-prospecting .prospect-field :is(input,select,textarea){font:400 15px/1.55 var(--sans,sans-serif);padding:10px 12px;border-radius:7px;max-width:100%;width:100%;min-width:0;box-sizing:border-box;color:var(--ink);background:var(--paper,#fafbfa)}
#aleph-prospecting .gf-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
#aleph-prospecting .gf-form .is-primary{justify-self:start}
#aleph-prospecting .prospect-button.is-primary{min-height:42px;padding:10px 18px;font-size:14px;font-weight:600;border-radius:7px}
#aleph-prospecting :is(button,input,select,textarea,a,summary):focus-visible,#nav-prospecting:focus-visible{outline:2px solid var(--gf-accent,#28586a);outline-offset:3px}
#aleph-prospecting .gf-muted,#aleph-prospecting .gf-turn small{color:var(--muted,#516466);font-size:13px;line-height:1.55}
#aleph-prospecting .gf-details{margin:15px 0;color:var(--muted);font-size:13px}
#aleph-prospecting .gf-form>.gf-details{margin:0}
#aleph-prospecting .gf-details summary{cursor:pointer;padding:7px 0;font-weight:550;width:fit-content}
#aleph-prospecting .gf-options{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:14px;margin:12px 0}
#aleph-prospecting .gf-history{margin:32px 0}
#aleph-prospecting .gf-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto 12px;gap:14px;justify-content:stretch;text-align:left;padding:16px 2px;min-height:49px;border:0;border-bottom:1px solid var(--gf-rule);border-radius:0;background:transparent;color:var(--ink)}
#aleph-prospecting .gf-row:hover,#aleph-prospecting .gf-step:hover{background:var(--soft)}
#aleph-prospecting .gf-campaign-name{font-size:15px;font-weight:550;overflow-wrap:anywhere}
#aleph-prospecting .gf-status{display:inline-block;font:550 12px/1.35 var(--sans,sans-serif);padding:5px 9px;border-radius:5px;background:var(--soft,#eaf0ef);color:var(--ink)}
#aleph-prospecting .gf-arrow{font-size:18px}
#aleph-prospecting .gf-back{padding:8px 0;border:0;color:var(--gf-accent);background:none;margin:18px 0 0}
#aleph-prospecting .gf-layout{display:grid;grid-template-columns:minmax(165px,23%) minmax(0,1fr);gap:clamp(14px,2.2vw,26px);align-items:start}
#aleph-prospecting .gf-steps{display:grid;gap:2px;list-style:none;margin:0;padding:0}
#aleph-prospecting .gf-step{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:11px 8px;min-height:44px;border:0;background:transparent;font:500 13px/1.35 var(--sans,sans-serif);text-align:left;color:var(--ink)}
#aleph-prospecting .gf-number{display:grid;place-items:center;border:1px solid var(--gf-rule);border-radius:50%;width:25px;height:25px;flex-shrink:0;font-size:12px}
#aleph-prospecting .gf-step[aria-pressed=true]{background:var(--soft);font-weight:700}
#aleph-prospecting .gf-step[aria-current=step] .gf-number{background:var(--gf-accent);color:var(--ap-onAccent,#fff);border-color:transparent}
#aleph-prospecting .gf-stage-meta{font-size:12px;color:var(--muted);margin-bottom:7px}
#aleph-prospecting .gf-stage p{line-height:1.6;overflow-wrap:anywhere}
#aleph-prospecting .gf-result{border:1px solid var(--gf-rule);border-radius:8px;padding:15px;display:grid;gap:6px}
#aleph-prospecting .gf-result p{margin:0;font-size:14px}
#aleph-prospecting .gf-check{display:flex;gap:10px;align-items:center;font-size:16px}
#aleph-prospecting .gf-check input{width:18px;height:18px;accent-color:var(--gf-accent)}
#aleph-prospecting .gf-mail{color:var(--muted);overflow-wrap:anywhere}
#aleph-prospecting .gf-quote{margin:12px 0;padding:8px 13px;border-left:3px solid var(--gf-accent);background:var(--soft);font-size:14px;line-height:1.5;white-space:pre-line}
#aleph-prospecting .gf-turn{border-left:2px solid var(--gf-rule);padding:6px 0 8px 14px;margin:15px 0;overflow-wrap:anywhere}
#aleph-prospecting .gf-turn.received{border-color:var(--gf-accent)}
#aleph-prospecting .gf-turn small{display:block}
#aleph-prospecting .gf-letter{white-space:pre-wrap;line-height:1.6}
@media(max-width:780px){#aleph-prospecting .gf-layout{grid-template-columns:1fr}#aleph-prospecting .gf-steps{grid-template-columns:repeat(3,minmax(0,1fr))}#aleph-prospecting .gf-step{font-size:12px;padding:7px 4px;gap:5px}#aleph-prospecting .gf-options{grid-template-columns:1fr}#aleph-prospecting .gf-card{padding:20px 14px}}
@media(max-width:460px){#aleph-prospecting{padding:14px 4px 36px}#aleph-prospecting .gf-steps{grid-template-columns:repeat(2,minmax(0,1fr))}#aleph-prospecting .gf-row{gap:6px;grid-template-columns:minmax(0,1fr) auto}#aleph-prospecting .gf-arrow{display:none}#aleph-prospecting .gf-actions{gap:8px}}

/* Prospectiva: use the width assigned by the ALEPH shell in either theme. */
body.gf-active #main-content.main {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
}
body.gf-active #aleph-prospecting {
  --gf-accent: var(--ap-accent, var(--ui-accent, #1458cf));
  --gf-rule: var(--ap-line, var(--line, #cfd9e6));
  box-sizing: border-box;
  container: prospectiva / inline-size;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: clamp(14px, 1.6vw, 26px);
  min-height: 100%;
  background: var(--ap-paper, var(--paper, #f2f5f9));
  color: var(--ap-ink, var(--ink, #152234));
}
#aleph-prospecting .prospect-header {
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
}
#aleph-prospecting .prospect-header > .prospect-actions { margin-inline-start: auto; }
#aleph-prospecting .gf-menu-open { display: none; }
#aleph-prospecting :is(.gf-card, .prospect-card, .prospect-fieldset) {
  background: var(--ap-surface, var(--card, #fff));
  border-color: var(--gf-rule);
  border-radius: 10px;
}
#aleph-prospecting .gf-start { border-top-color: var(--gf-accent); }
#aleph-prospecting .gf-page-title,
#aleph-prospecting .gf-title {
  font-family: var(--sans, system-ui, sans-serif);
  font-weight: 650;
  overflow-wrap: anywhere;
}
#aleph-prospecting .gf-page-title {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  margin: .8em 0 .6em;
}
#aleph-prospecting .gf-title { font-size: clamp(1.4rem, 2vw, 2rem); }
#aleph-prospecting :is(.prospect-button, .gf-details summary) { min-height: 44px; }
#aleph-prospecting .prospect-field :is(input, select, textarea) {
  min-height: 44px;
  font-size: 16px;
  background: var(--ap-surface, var(--card, #fff));
}
#aleph-prospecting .gf-layout { grid-template-columns: minmax(154px, 202px) minmax(0, 1fr); }
#aleph-prospecting .gf-layout > *, #aleph-prospecting .gf-options > * { min-width: 0; }
#aleph-prospecting:has(> .prospect-editor[open]) > :is(.prospect-tabs, .prospect-health, .prospect-pane),
#aleph-prospecting:has(> .prospect-editor[open]) > .prospect-header .prospect-actions { display: none; }
#aleph-prospecting .prospect-editor[open] {
  display: block;
  box-sizing: border-box;
  position: static;
  width: 100%;
  min-width: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
#aleph-prospecting .prospect-editor :is(.prospect-detail-head, .prospect-detail-body) {
  position: static;
  background: transparent;
  padding: 0;
  border: 0;
}
#aleph-prospecting .prospect-editor .prospect-detail-head { margin: 16px 0; }
#aleph-prospecting .prospect-editor .prospect-detail-head h3 {
  font: 650 clamp(1.8rem, 2.7vw, 2.55rem)/1.15 var(--sans, system-ui);
  letter-spacing: -.04em;
}
#aleph-prospecting .prospect-editor .prospect-detail-body > p { margin: 10px 0; }
#aleph-prospecting .prospect-editor .prospect-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
#aleph-prospecting .prospect-editor .prospect-fieldset {
  margin: 0;
  padding: clamp(14px, 1.4vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#aleph-prospecting .prospect-editor legend {
  color: var(--ap-ink, var(--ink));
  font-size: 1.08rem;
  font-weight: 650;
}
#aleph-prospecting .prospect-form > :not(fieldset) { grid-column: 1 / -1; }
#aleph-prospecting .prospect-form-footer { position: static; flex-wrap: wrap; }
@container prospectiva (min-width: 1050px) {
  #aleph-prospecting .prospect-editor .prospect-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container prospectiva (max-width: 720px) {
  #aleph-prospecting .gf-layout,
  #aleph-prospecting .gf-options { grid-template-columns: minmax(0, 1fr); }
  #aleph-prospecting .gf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container prospectiva (max-width: 520px) {
  #aleph-prospecting .prospect-editor .prospect-fieldset { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 801px) {
  html.sidebar-collapsed body.gf-active .shell { grid-template-columns: minmax(0, 1fr) !important; }
  html.sidebar-collapsed body.gf-active .shell > #sidebar { display: none !important; }
  html.sidebar-collapsed body.gf-active #aleph-prospecting .gf-menu-open { display: inline-flex; }
}

#aleph-prospecting .gf-planner {
  --ap-paper: var(--card,#fff); --ap-text: var(--ink,#152234);
  --ap-muted: var(--muted,#546477); --ap-line: var(--line,#cfd9e6);
  --ap-brand: var(--gf-accent); --ap-on: var(--ap-onAccent,#fff);
  --ap-wash: var(--soft,#edf3f9); --ap-bg: var(--paper,#f2f5f9);
  display:grid;gap:16px;min-width:0;padding-block:18px 5px;
}
#aleph-prospecting .gf-planner * {box-sizing:border-box}
#aleph-prospecting .gf-planner [hidden] {display:none!important}
#aleph-prospecting .gf-planner :is(h1,h3,h4,p) {margin:0}
#aleph-prospecting .gf-planner h1 {font:650 clamp(1.8rem,2.7vw,2.55rem)/1.15 var(--sans,sans-serif)}
#aleph-prospecting .gf-planner button {padding:8px 13px;min-height:44px;border:1px solid var(--ap-line);border-radius:8px;color:var(--ink);background:var(--card)}
#aleph-prospecting .gf-planner .primary {color:var(--ap-on);background:var(--ap-brand);border-color:var(--ap-brand)}
#aleph-prospecting .gf-planner button:disabled {opacity:.65}
 #aleph-prospecting .gf-planner .heading, #aleph-prospecting .gf-planner .actions, #aleph-prospecting .gf-planner .rowhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
 #aleph-prospecting .gf-planner .actions{justify-content:flex-start}
 #aleph-prospecting .gf-planner .ap-eyebrow, #aleph-prospecting .gf-planner .hint{font-size:14px;color:var(--ap-muted)}
 #aleph-prospecting .gf-planner .heading .ap-eyebrow{margin-bottom:3px}
 #aleph-prospecting .gf-planner .panel{background:var(--ap-paper);border:1px solid var(--ap-line);border-radius:12px;padding:clamp(13px,1.8vw,22px);display:grid;align-content:start;gap:12px;min-width:0}
 #aleph-prospecting .gf-planner .primary{background:var(--ap-brand);border-color:var(--ap-brand);color:var(--ap-on)}
 #aleph-prospecting .gf-planner .quiet{background:transparent;color:var(--ap-brand)}
 #aleph-prospecting .gf-planner .pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 #aleph-prospecting .gf-planner .fields{display:grid;gap:12px}
 #aleph-prospecting .gf-planner label{display:grid;gap:5px;font-size:15px;font-weight:600;min-width:0}
 #aleph-prospecting .gf-planner input, #aleph-prospecting .gf-planner select, #aleph-prospecting .gf-planner textarea{min-width:0;width:100%;font-size:16px;font-weight:400;padding:9px 10px;border:1px solid var(--ap-line);border-radius:7px;background:var(--ap-paper);min-height:44px}
 #aleph-prospecting .gf-planner textarea{resize:vertical}
 #aleph-prospecting .gf-planner input::placeholder, #aleph-prospecting .gf-planner textarea::placeholder{color:var(--ap-muted);opacity:1}
 #aleph-prospecting .gf-planner .identity{background:var(--ap-wash);padding:10px 12px;border-radius:8px}
 #aleph-prospecting .gf-planner summary{cursor:pointer;font-weight:575;min-height:44px;align-content:center}
 #aleph-prospecting .gf-planner details[open] .fields{margin:10px 0 3px}
 #aleph-prospecting .gf-planner .audience{display:grid;gap:12px}
 #aleph-prospecting .gf-planner .segment{padding:14px;border:1px solid var(--ap-line);border-radius:8px}
 #aleph-prospecting .gf-planner .segment .cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
 #aleph-prospecting .gf-planner .segment .actions button{font-size:14px}
 #aleph-prospecting .gf-planner .result{display:grid;gap:7px;padding:12px 14px;background:var(--ap-wash);border-radius:8px}
 #aleph-prospecting .gf-planner .result ul{margin:0;padding-inline-start:20px}
 #aleph-prospecting .gf-planner .foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}
 #aleph-prospecting .gf-planner .foot label{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
 #aleph-prospecting .gf-planner .foot select{width:auto}
 #aleph-prospecting .gf-planner .list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:8px}
 #aleph-prospecting .gf-planner .list button{text-align:left;display:grid;gap:3px}
 #aleph-prospecting .gf-planner .list small{font-weight:400;color:var(--ap-muted)}
 #aleph-prospecting .gf-planner [role=status]:empty{display:none}

#aleph-prospecting .gf-planner .pair {align-items:start}
#aleph-prospecting .gf-planner .segment {background:var(--ap-bg)}
#aleph-prospecting .gf-planner .result {border-inline-start:3px solid var(--ap-brand)}
#aleph-prospecting .gf-planner > .is-quiet {justify-self:start}
@container prospectiva (max-width:680px) {
  #aleph-prospecting .gf-planner .pair,#aleph-prospecting .gf-planner .segment .cols {grid-template-columns:minmax(0,1fr)}
}

/* Company and campaign workspace */
.pc-desk { width: min(100%, 1100px); margin: 16px auto 60px; color: #172a3c; }
.pc-head, .pc-company, .pc-row, .pc-legacy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pc-head { justify-content: space-between; padding: 14px 0; }
.pc-title { font-size: clamp(1.55rem, 2.4vw, 2.3rem); letter-spacing: -.035em; line-height: 1.15; margin: .45em 0; }
.pc-company { border: 1px solid #d7e2ea; border-left: 4px solid #245eb7; background: #f6f9fc; padding: 20px; border-radius: 8px; }
.pc-desk .prospect-field { display: grid; gap: 6px; font-size: .92rem; }
.pc-company .prospect-field { flex: 1 1 240px; }
.pc-company .pc-about { flex-basis: 100%; max-height: 8em; overflow: auto; margin: 0; white-space: pre-line; }
.pc-sub { font-size: 1.25rem; margin: .8em 0; }
.pc-row { padding: 16px 0; border-bottom: 1px solid #dae3eb; }
.pc-row h4,.pc-row p { margin: 0 0 4px; }
.pc-main { flex: 1 1 260px; overflow-wrap: anywhere; }
.pc-desk .pc-phase,.gf-result .pc-phase { color: #1e594a; background: #e9f4ee; display:inline-block; margin:4px 0; padding:2px 8px; border-radius:4px; }
.pc-form { max-width: 760px; display: grid; gap: 16px; }
.pc-desk.pc-identity, .pc-identity .pc-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
.pc-identity .pc-form { grid-template-columns: minmax(0, 1fr); }
.pc-identity .pc-identity-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
  gap: 16px 24px;
}
.pc-identity .prospect-field, .pc-identity-logo { min-width: 0; }
.pc-identity-logo { display: grid; gap: 8px; }
.pc-identity-logo button { justify-self: start; }
.pc-identity-logo :is([hidden], .signature-logo-preview:empty, [role=status]:empty) { display: none; }
.pc-segment { border:1px solid #d3dee6; border-radius:8px; padding:16px; display:grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr)); gap:10px; }
.pc-segment legend,.pc-eyebrow { color:#465d70; font-size:.87rem; font-weight:650; }
.pc-form .is-primary { justify-self:start; }
.pc-empty,.pc-lead { color:#485e71; margin:.5rem 0 1.15rem; }
.pc-open { color:#164d95; }
.pc-desk .gf-details { margin:10px 0; }
.pc-legacy { padding:10px 0; }
.pc-fact { border-left:3px solid #627fa1; padding:6px 12px; }

#aleph-prospecting .pc-result-tools{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:1rem 0}
#aleph-prospecting .pc-group-toggle{display:flex;align-items:center;gap:.5rem;padding:.5rem 0}
#aleph-prospecting .pc-result-scroll{max-width:100%;overflow:auto}
#aleph-prospecting .pc-results{width:100%;border-collapse:collapse;text-align:left;font-size:.93rem}
#aleph-prospecting .pc-results :is(th,td){padding:.65rem .8rem;vertical-align:top;border-bottom:1px solid #cddae6}
#aleph-prospecting .pc-results thead th{white-space:nowrap}
#aleph-prospecting .pc-results thead button{font:inherit;color:inherit;background:transparent;border:0;padding:.3rem 0}
#aleph-prospecting .pc-results td a{display:block}
#aleph-prospecting .pc-results td:first-child{font-weight:600;min-width:12rem}
#aleph-prospecting .pc-results .pc-place{background:#eaf2fb;color:#233c54}
#aleph-prospecting .pc-results details[open]{min-width:16rem}

#aleph-prospecting .pc-search-spinner {display:inline-block;vertical-align:-.13em;width:.92em;height:.92em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;margin-inline-end:.45em;animation:pc-search-spin .85s linear infinite}
@keyframes pc-search-spin {to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){#aleph-prospecting .pc-search-spinner{animation:none}}
#aleph-prospecting .pc-results thead button{cursor:pointer;display:inline-flex;gap:.4em;align-items:center}
#aleph-prospecting .pc-sort-arrow{opacity:.65}
#aleph-prospecting .pc-results [aria-sort] button{color:#164fa4}
#aleph-prospecting .pc-results input[type=checkbox]{width:1.15rem;height:1.15rem}
#aleph-prospecting .pc-deep-action:not(:empty){display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin-bottom:.8rem}
#aleph-prospecting .pc-finding{display:block}
#aleph-prospecting .pc-results:has(thead input) td:first-child{min-width:auto}

#aleph-prospecting dialog.prospect-letter[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  box-sizing: border-box;
  width: min(68rem, calc(100vw - 2rem));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  background: #fff;
  color: #172b40;
  border: 1px solid #c4cfd9;
  border-radius: 14px;
  box-shadow: 0 18px 65px #12233455;
  color-scheme: light;
}
#aleph-prospecting .prospect-letter::backdrop { background: #12233480; backdrop-filter: none; }
#aleph-prospecting .prospect-letter .prospect-detail-head {
  position: static; flex: none; margin: 0; padding: 14px 22px;
  background: #fff; color: #172b40; border-bottom: 1px solid #d5dfe7;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
#aleph-prospecting .prospect-letter .prospect-detail-head h3 { margin: 0; font-size: 1.3rem; }
#aleph-prospecting .prospect-letter .prospect-detail-body {
  display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  padding: 0; overflow: auto; min-height: 0; overscroll-behavior: contain; color: #172b40;
}
#aleph-prospecting .prospect-letter :is(.letter-context,.letter-editor) {
  padding: clamp(16px, 2vw, 26px); min-width: 0; overflow-wrap: anywhere; background: #fff;
}
#aleph-prospecting .prospect-letter .letter-context { background: #f3f7fa; border-right: 1px solid #d5dfe7; }
#aleph-prospecting .prospect-letter h4 { margin: 0 0 .75rem; color: #142a40; font-size: 1.12rem; }
#aleph-prospecting .prospect-letter h5 { margin: 1.25rem 0 .35rem; color: #142a40; font-size: .95rem; }
#aleph-prospecting .prospect-letter p { margin: .35rem 0 .75rem; line-height: 1.5; }
#aleph-prospecting .prospect-letter :is(.letter-meta,.gf-muted) { color: #40566a; }
#aleph-prospecting .prospect-letter .letter-form { display: grid; gap: .75rem; }
#aleph-prospecting .prospect-letter .letter-form label { display: grid; gap: .35rem; font-weight: 600; color: #24394a; }
#aleph-prospecting .prospect-letter :is(input,textarea) { box-sizing: border-box; width: 100%; background: #fff; color: #142a40; font-weight: 400; border: 1px solid #a6b7c9; }
#aleph-prospecting .prospect-letter textarea { min-height: 13em; line-height: 1.5; resize: vertical; }
#aleph-prospecting .prospect-letter .letter-form button { justify-self: start; }
#aleph-prospecting .prospect-letter [role=status]:empty { display: none; }
@media (max-width: 700px) {
  #aleph-prospecting dialog.prospect-letter[open] { width: calc(100vw - .75rem); max-height: calc(100dvh - .75rem); }
  #aleph-prospecting .prospect-letter .prospect-detail-body { display: block; }
  #aleph-prospecting .prospect-letter .letter-context { border-right: 0; border-bottom: 1px solid #d5dfe7; }
}

.pc-agenda-switch{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;margin:.5rem 0 1rem}
.pc-calendar-mirror{min-width:0;width:100%;overflow:auto}
.pc-calendar-mirror .calendar-layout{min-width:0}

/* Campaign contact grid and its editing drawer. */
#aleph-prospecting .crm-grid-tools,
#aleph-prospecting .crm-org-actions,
#aleph-prospecting .crm-row-actions,
#aleph-prospecting .crm-grid-footer {display:flex;align-items:center;gap:.4rem .7rem;flex-wrap:wrap}
#aleph-prospecting .crm-grid-tools {justify-content:flex-end;margin:.75rem 0}
#aleph-prospecting .crm-grid-footer {justify-content:space-between;margin:1rem 0 .2rem}
#aleph-prospecting .crm-grid-tools button,#aleph-prospecting .crm-grid-footer button,#aleph-prospecting .crm-contact-table button {width:auto;max-width:100%;min-height:32px;line-height:1.25;margin:0;padding:.35rem .65rem;white-space:normal}
#aleph-prospecting .crm-contact-table {width:100%;table-layout:auto;border-spacing:0;border-collapse:collapse;font-size:.9rem;min-width:0}
#aleph-prospecting .crm-contact-table th,#aleph-prospecting .crm-contact-table td {text-align:left;vertical-align:top;padding:.65rem .6rem;line-height:1.45;overflow-wrap:anywhere}
#aleph-prospecting .crm-contact-table thead th {font-size:.79rem;font-weight:650;padding-block:.45rem}
#aleph-prospecting .crm-contact-table .pc-place th {background:#f0f4f6;color:#203742;padding:.7rem .8rem;border-block:1px solid #d2dce0;white-space:normal}
#aleph-prospecting .crm-org-line {display:flex;align-items:center;justify-content:space-between;gap:.45rem 1rem;flex-wrap:wrap}
#aleph-prospecting .crm-org-name {font-size:1rem;line-height:1.35;text-align:left;flex:1 1 16rem}
#aleph-prospecting .crm-org-meta {font-size:.82rem;margin:.15rem 0;color:#425761;font-weight:400}
#aleph-prospecting .crm-org-info {font-size:.83rem;font-weight:400;margin-top:.2rem}
#aleph-prospecting .crm-org-info summary,#aleph-prospecting .crm-action-more summary {cursor:pointer;color:#1d526a;text-decoration:underline;text-underline-offset:3px;width:fit-content;min-height:26px;padding:.15rem 0}
#aleph-prospecting .crm-org-info p {max-width:85ch;line-height:1.5;margin:.35rem 0}
#aleph-prospecting .crm-row-actions {align-items:baseline;gap:0 .45rem;min-width:6rem}
#aleph-prospecting .crm-action-more {font-size:.83rem;max-width:100%}
#aleph-prospecting .crm-action-more[open] {flex-basis:100%}
#aleph-prospecting .crm-action-options {display:flex;flex-wrap:wrap;gap:.35rem;padding:.25rem 0}
#aleph-prospecting .crm-contact-table td input[type=checkbox] {width:1rem;height:1rem;min-height:0;margin:.3rem 0}
#aleph-prospecting .crm-contact-table td .gf-muted {display:block;font-size:.78rem;margin:.25rem 0}
#aleph-prospecting .crm-contact-table .crm-email button {display:block;font-size:.77rem;margin-top:.25rem}
#aleph-prospecting .crm-grid-count {margin:0}
body.gf-active dialog.prospect-detail.crm-grid-drawer[open] {box-sizing:border-box;position:fixed!important;inset:0 0 0 auto!important;transform:none!important;margin:0 0 0 auto!important;display:flex!important;flex-direction:column;width:min(30rem,100vw)!important;max-width:100vw!important;min-width:0!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;padding:0!important;border:0;border-left:1px solid #c9d5db;border-radius:0!important;box-shadow:-10px 0 35px rgba(21,46,60,.14);background:#fff;color:#223a46;overflow:hidden}
dialog.crm-grid-drawer::backdrop {background:rgba(17,35,46,.36)}
body.gf-active dialog.crm-grid-drawer .prospect-detail-head {display:flex!important;flex:0 0 auto;align-items:center;justify-content:space-between;gap:.6rem;padding:.8rem 1rem!important;margin:0;border-bottom:1px solid #dce3e6;background:white}
body.gf-active dialog.crm-grid-drawer .prospect-detail-head h3 {font-size:1.15rem;margin:0;line-height:1.3}
body.gf-active dialog.crm-grid-drawer .prospect-detail-body {display:flex!important;flex-direction:column;flex:1;overflow:hidden;min-height:0;max-height:none;padding:0!important;gap:0;margin:0}
body.gf-active dialog.crm-grid-drawer .crm-editor-org {padding:.65rem 1rem .4rem;font-size:.86rem;margin:0;font-weight:600;color:#52646d}
body.gf-active dialog.crm-grid-drawer form.prospect-form {display:flex!important;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0;padding:0!important;gap:0}
body.gf-active dialog.crm-grid-drawer .crm-editor-content {overflow-y:auto;flex:1;min-height:0;padding:.5rem 1rem 1rem}
body.gf-active dialog.crm-grid-drawer fieldset.prospect-fieldset, body.gf-active dialog.crm-grid-drawer .crm-contact-fields {display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem .8rem;align-items:start;min-width:0;margin:0 0 .8rem;padding:0;border:0}
body.gf-active dialog.crm-grid-drawer .crm-contact-fields {grid-column:1/-1;margin:0}
body.gf-active dialog.crm-grid-drawer fieldset legend {font-weight:600;font-size:.9rem;padding:0;margin:0 0 .5rem;color:#334e5b}
body.gf-active dialog.crm-grid-drawer label.prospect-field {display:flex;flex-direction:column;align-items:stretch;font-size:.83rem;line-height:1.3;gap:.2rem;min-width:0;margin:0}
body.gf-active dialog.crm-grid-drawer label.prospect-field[hidden] {display:none!important}
body.gf-active dialog.crm-grid-drawer label.prospect-field.is-wide,body.gf-active dialog.crm-grid-drawer .gf-check {grid-column:1/-1}
body.gf-active dialog.crm-grid-drawer :is(input:not([type=checkbox]),select,textarea) {box-sizing:border-box;width:100%!important;min-width:0;max-width:100%;min-height:36px;height:auto;margin:0;line-height:1.35;padding:.42rem .5rem;font:inherit;background:#fff;color:#213746;border:1px solid #aabac2;border-radius:5px}
body.gf-active dialog.crm-grid-drawer textarea {min-height:4.4rem;resize:vertical}
body.gf-active dialog.crm-grid-drawer :focus-visible,#aleph-prospecting .crm-contact-table :focus-visible {outline:2px solid #287397;outline-offset:2px}
body.gf-active dialog.crm-grid-drawer .gf-check {display:flex;gap:.5rem;align-items:center;font-size:.85rem}
body.gf-active dialog.crm-grid-drawer .gf-check input {width:1rem;height:1rem;margin:0;min-height:0}
body.gf-active dialog.crm-grid-drawer .crm-editor-foot {flex:0 0 auto;padding:.75rem 1rem max(.75rem,env(safe-area-inset-bottom));border-top:1px solid #dce3e6;display:flex;gap:.55rem;justify-content:flex-end;align-items:center;flex-wrap:wrap;background:white}
body.gf-active dialog.crm-grid-drawer .crm-editor-foot [role=alert] {flex:1 1 100%;margin:0;color:#9d3028;font-size:.85rem}
body.gf-active dialog.crm-grid-drawer .crm-editor-foot [role=alert]:empty {display:none}
body.gf-active dialog.crm-grid-drawer button.prospect-button {box-sizing:border-box;width:auto!important;min-width:0!important;max-width:100%;min-height:34px;padding:.4rem .8rem;flex:0 0 auto;justify-self:end;margin:0;line-height:1.25}
@media(max-width:760px){
#aleph-prospecting .crm-contact-scroll {overflow:visible;max-height:none}
#aleph-prospecting .crm-contact-table,#aleph-prospecting .crm-contact-table tbody,#aleph-prospecting .crm-contact-table .pc-place,#aleph-prospecting .crm-contact-table .pc-place th {display:block;width:100%;box-sizing:border-box}
#aleph-prospecting .crm-contact-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) {display:grid;grid-template-columns:1.75rem minmax(0,1fr);gap:.1rem .4rem;padding:.65rem .45rem;border-bottom:1px solid #dce4e8}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td {grid-column:2;display:block;width:auto;padding:0;border:0;white-space:normal}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td:first-child {grid-column:1;grid-row:1 / span 4}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td:nth-child(2) {font-weight:650}
#aleph-prospecting .crm-contact-table .crm-org-name {flex-basis:100%}
#aleph-prospecting .crm-contact-table .crm-row-actions {margin-top:.3rem}
}
@media(max-width:390px){body.gf-active dialog.crm-grid-drawer fieldset.prospect-fieldset,body.gf-active dialog.crm-grid-drawer .crm-contact-fields{grid-template-columns:minmax(0,1fr)}}


/* The shared campaign layout uses global overrides. Scope compact form sizing to this drawer. */
body.gf-active dialog.prospect-detail.crm-grid-drawer[open]{background:#fff!important;gap:0!important;align-items:stretch!important;color:#213746!important;box-shadow:-8px 0 28px rgba(24,46,59,.16)!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .prospect-detail-head{background:#fff!important;min-height:0!important;margin:0!important;border-bottom:1px solid #dae2e6!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .prospect-detail-head h3{font-size:1.3rem!important;line-height:1.25!important;font-weight:650!important;margin:0!important;letter-spacing:normal!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .prospect-detail-body,body.gf-active dialog.prospect-detail.crm-grid-drawer form.prospect-form{align-items:stretch!important;gap:0!important;background:#fff!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-editor-content,body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-editor-foot {width:100%!important;align-self:stretch!important;box-sizing:border-box!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer fieldset.prospect-fieldset{padding:.45rem 0 0!important;box-shadow:none!important;background:#fff!important;border:0!important;margin:0 0 1rem!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-contact-fields{width:100%!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-editor-org{margin:0!important;padding:.75rem 1rem .45rem!important;color:#405760!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer button.prospect-button {padding:.38rem .8rem!important;min-height:34px!important;height:auto!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-editor-foot{padding:.65rem 1rem max(.65rem,env(safe-area-inset-bottom))!important;background:#fff!important}
body.gf-active dialog.prospect-detail.crm-grid-drawer .crm-editor-content{padding:.4rem 1rem 1rem!important}


/* Contact selection uses a horizontally scrollable table on every screen. */
#aleph-prospecting :is(.gf-stage,.gf-layout,.crm-contact-scroll){min-width:0}
#aleph-prospecting .crm-contact-scroll{display:block;max-width:100%;width:100%;overflow-x:auto;overscroll-behavior-x:contain;max-height:none}
#aleph-prospecting table.crm-contact-table{display:table!important;table-layout:fixed!important;width:var(--crm-grid-width,100%)!important;min-width:0!important;max-width:none!important}
#aleph-prospecting .crm-contact-table colgroup{display:table-column-group}
#aleph-prospecting .crm-contact-table thead{display:table-header-group;position:static;width:auto;height:auto;overflow:visible;clip-path:none}
#aleph-prospecting .crm-contact-table tbody{display:table-row-group;width:auto}
#aleph-prospecting .crm-contact-table tbody tr,#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place){display:table-row;padding:0}
#aleph-prospecting .crm-contact-table tbody tr td,#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td,#aleph-prospecting .crm-contact-table tbody .pc-place th{display:table-cell;width:auto;min-width:0;box-sizing:border-box;vertical-align:top}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td{padding:.48rem .45rem;border-bottom:1px solid #dce4e8;white-space:normal;overflow-wrap:anywhere;font-weight:400}
#aleph-prospecting .crm-contact-table tbody tr:not(.pc-place) td[data-column=name]{font-weight:600}
#aleph-prospecting .crm-contact-table .crm-row-actions,#aleph-prospecting .crm-contact-table details[open]{min-width:0}
#aleph-prospecting .crm-contact-table thead th{position:relative;box-sizing:border-box;background:#f3f6f8;min-width:0;white-space:normal;padding:.1rem 8px .1rem .4rem;border-bottom:1px solid #b3c3cc;text-align:left;user-select:none}
#aleph-prospecting .crm-contact-table thead button.crm-move{display:block;width:100%;min-width:0;min-height:32px;border:0;background:transparent;text-align:left;margin:0;padding:0;line-height:1.2;white-space:normal;cursor:grab;touch-action:none;color:inherit}
#aleph-prospecting .crm-contact-table .crm-resize{position:absolute;inset:0 0 0 auto;width:10px;cursor:col-resize;touch-action:none;z-index:1}
#aleph-prospecting .crm-contact-table .crm-resize::after{content:'';position:absolute;top:15%;bottom:15%;right:3px;width:1px;background:#9aaeb9}
#aleph-prospecting .crm-contact-table .crm-resize:is(:hover,:focus-visible)::after{width:3px;background:#186489}
#aleph-prospecting .crm-contact-table th.crm-drop-target{background:#d9eaf3;box-shadow:inset 0 -3px #256588}
#aleph-prospecting .crm-contact-table.crm-adjusting{user-select:none}
#aleph-prospecting .crm-grid-tools [hidden]{display:none!important}
