/* Outreach single-lead workspace. All selectors scoped to Outreach only. */
body.page-outreach:not(.page-leads) .desktop-workspace-heading,
body.page-outreach:not(.page-leads) .desktop-queue-heading,
body.page-outreach:not(.page-leads) .outreach-controls,
body.page-outreach:not(.page-leads) #crmLeadCards{display:none!important}
body.page-outreach:not(.page-leads) .app{height:100dvh!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable}
body.page-outreach:not(.page-leads) main.content{display:block!important;position:relative!important;height:auto!important;min-height:calc(100dvh - 110px)!important;max-height:none!important;overflow:visible!important;grid-template-columns:none!important;max-width:1520px!important;width:100%!important;padding:22px 24px 55px!important;margin:0 auto!important}
body.page-outreach:not(.page-leads) .sh-reference-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 0 18px;min-height:55px;color:var(--muted,#738196);font-size:15px}
body.page-outreach:not(.page-leads) .workspace-change-lead{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #d6e0ee;border-radius:12px;background:var(--card,#fff);padding:12px 17px;min-height:46px;color:#1a467d;font-weight:800;text-decoration:none;white-space:nowrap}
body.page-outreach:not(.page-leads) .workspace-change-lead svg{width:20px;height:20px}
body.page-outreach:not(.page-leads) .outreach-workspace-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 278px!important;gap:16px!important;align-items:start!important;min-width:0;width:100%;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;position:relative!important;grid-area:auto!important;inset:auto!important;transform:none!important}
body.page-outreach:not(.page-leads) .workspace-main,body.page-outreach:not(.page-leads) .workspace-side{min-width:0!important;max-width:100%!important;position:static!important;align-self:start!important}
body.page-outreach:not(.page-leads) #selectedLeadTop{display:block!important;position:static!important;inset:auto!important;transform:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;grid-area:auto!important;padding:0!important;margin:0!important;width:100%!important;max-width:100%!important}
body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card{display:block!important;position:static!important;inset:auto!important;transform:none!important;float:none!important;width:100%!important;max-width:100%!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:23px 24px!important;background:var(--card,#fff)!important;border:1px solid var(--line,#e5eaf0)!important;border-radius:16px!important;box-shadow:0 4px 25px rgba(10,28,56,.055)!important;box-sizing:border-box!important}
/* The original CRM card remains in the DOM for real handlers and backend state. */
body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card.sh-reference-ready>.lead-head,
body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card.sh-reference-ready>.contact-line,
body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card.sh-reference-ready>.compact-lead-meta,
body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card.sh-reference-ready>.lead-details{display:none!important}
body.page-outreach:not(.page-leads) .sh-ref-showcase{display:flex;flex-direction:column;gap:0;width:100%;min-width:0}
body.page-outreach:not(.page-leads) .sh-ref-heading{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:14px;align-items:center;padding:0 0 21px}
body.page-outreach:not(.page-leads) .sh-ref-company-icon{height:60px;width:60px;border-radius:15px;background:#eaf3ff;color:#196ce0;display:grid;place-items:center}
body.page-outreach:not(.page-leads) .sh-ref-company-icon svg{height:29px;width:29px}
body.page-outreach:not(.page-leads) .sh-ref-company-heading{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;min-width:0}
body.page-outreach:not(.page-leads) .sh-ref-company-heading h2{font-size:clamp(21px,2vw,27px);font-weight:850;letter-spacing:-.5px;line-height:1.18;margin:0;color:var(--text,#122033);overflow-wrap:anywhere}
body.page-outreach:not(.page-leads) .sh-ref-subtitle{font-size:14px;color:var(--muted,#738196);margin:7px 0 0;font-weight:650}
body.page-outreach:not(.page-leads) .sh-ref-tags{display:flex;flex-wrap:wrap;gap:7px}
body.page-outreach:not(.page-leads) .sh-ref-tag{background:#eef5ff;color:#2568c8;border-radius:999px;padding:6px 11px;font-weight:750;font-size:11px;border:1px solid #dce9fd}
body.page-outreach:not(.page-leads) .sh-ref-star{border:0;background:transparent;color:#8d9bb1;min-width:42px;min-height:42px;display:grid;place-items:center;cursor:pointer}
body.page-outreach:not(.page-leads) .sh-ref-star svg{width:23px;height:23px}
body.page-outreach:not(.page-leads) .sh-ref-stat-row{display:grid;grid-template-columns:1fr 1.08fr 1fr .92fr;border-bottom:1px solid var(--line,#e5eaf0);padding:9px 0 22px;gap:0}
body.page-outreach:not(.page-leads) .sh-ref-stat{min-width:0;padding:3px 13px;border-right:1px solid var(--line,#e5eaf0)}
body.page-outreach:not(.page-leads) .sh-ref-stat:first-child{padding-left:0}
body.page-outreach:not(.page-leads) .sh-ref-stat:last-child{border-right:0}
body.page-outreach:not(.page-leads) .sh-ref-label{display:flex;align-items:center;gap:7px;color:#64738d;font-size:12px;line-height:1.3;margin:0 0 8px}
body.page-outreach:not(.page-leads) .sh-ref-label svg{width:18px;height:18px}
body.page-outreach:not(.page-leads) .sh-ref-value{font-size:15px;font-weight:850;line-height:1.3;color:var(--text,#122033);overflow-wrap:anywhere}
body.page-outreach:not(.page-leads) .sh-ref-small{font-size:11px;margin-top:4px;color:var(--muted,#738196);line-height:1.3}
body.page-outreach:not(.page-leads) .sh-ref-status{display:inline-flex;padding:7px 9px;border-radius:12px;background:#fff0ec;color:#af4632;font-size:12px;font-weight:850}
body.page-outreach:not(.page-leads) .sh-ref-notes{display:grid;grid-template-columns:25px minmax(0,1fr);gap:13px;padding:19px 0 21px;min-height:105px}
body.page-outreach:not(.page-leads) .sh-ref-notes>svg{width:22px;height:22px;color:#22365c}
body.page-outreach:not(.page-leads) .sh-ref-notes h3{margin:0 0 6px;font-size:14px;color:var(--text,#122033)}
body.page-outreach:not(.page-leads) .sh-ref-notes p{margin:0;color:#4c5e78;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
body.page-outreach:not(.page-leads) .sh-ref-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:stretch}
body.page-outreach:not(.page-leads) .sh-ref-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:49px;padding:10px 13px;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#162c55;font-size:12px;font-weight:850;text-decoration:none;cursor:pointer;white-space:nowrap;flex:1 1 auto}
body.page-outreach:not(.page-leads) .sh-ref-action svg{height:17px;width:17px}
body.page-outreach:not(.page-leads) .sh-ref-action.primary{background:#1553a0;color:#fff;border-color:#1553a0;flex:1.3 1 auto}
body.page-outreach:not(.page-leads) .workspace-card{min-width:0;background:var(--card,#fff);color:var(--text,#122033);border:1px solid var(--line,#e5eaf0);border-radius:16px;box-shadow:0 4px 25px rgba(10,28,56,.055);padding:20px!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
body.page-outreach:not(.page-leads) .workspace-card-head{display:flex;gap:9px;align-items:center;margin:0 0 19px}
body.page-outreach:not(.page-leads) .workspace-card-head h2{margin:0;font-size:16px;font-weight:850;color:inherit}
body.page-outreach:not(.page-leads) .workspace-card-head svg{width:20px;height:20px}
body.page-outreach:not(.page-leads) .workspace-side-stack{display:grid;gap:18px}
body.page-outreach:not(.page-leads) .workspace-side-block+.workspace-side-block{border-top:1px solid var(--line,#e5eaf0);padding-top:18px}
body.page-outreach:not(.page-leads) .workspace-side-label{display:flex;gap:8px;align-items:center;margin-bottom:10px;color:var(--muted,#738196);font-weight:750;font-size:12px}
body.page-outreach:not(.page-leads) .workspace-side-label svg{width:18px;height:18px}
body.page-outreach:not(.page-leads) .workspace-callout{display:flex;gap:8px;align-items:flex-start;border-radius:10px;padding:12px;background:#fff1ee;color:#a94231;font-size:12px;font-weight:800;line-height:1.55}
body.page-outreach:not(.page-leads) .workspace-side-text{font-weight:850;font-size:14px}
body.page-outreach:not(.page-leads) .workspace-side-subtext{display:block;font-weight:650;font-size:11px;color:var(--muted,#738196);margin-top:5px}
body.page-outreach:not(.page-leads) .outreach-lower-grid{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;gap:14px!important;position:static!important;width:100%!important;min-width:0!important;margin:14px 0 0!important;padding:0!important;align-items:stretch!important;grid-area:auto!important}
body.page-outreach:not(.page-leads) .workspace-activity-list{list-style:none;padding:0;margin:0;display:grid;gap:14px}
body.page-outreach:not(.page-leads) .workspace-activity-item{display:flex;gap:12px;align-items:start}
body.page-outreach:not(.page-leads) .workspace-activity-dot{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:#eaf3ff;color:#226adc}
body.page-outreach:not(.page-leads) .workspace-activity-title{margin:0;font-size:13px;font-weight:800}
body.page-outreach:not(.page-leads) .workspace-activity-copy{margin:4px 0 0;font-size:12px;color:var(--muted,#738196);line-height:1.5}
body.page-outreach:not(.page-leads) .workspace-notes-form{display:grid;gap:11px}
body.page-outreach:not(.page-leads) .workspace-notes-form textarea{box-sizing:border-box;width:100%;min-height:130px;padding:13px;border-radius:12px;border:1px solid var(--line,#e5eaf0);resize:vertical;color:var(--text,#122033);background:var(--page,#f4f7fa);font:inherit}
body.page-outreach:not(.page-leads) .workspace-notes-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body.page-outreach:not(.page-leads) .workspace-save-note{border:0;background:#d9e8ff;border-radius:11px;padding:11px 17px;min-height:42px;color:#1b59ab;font-weight:800;cursor:pointer}
body.page-outreach:not(.page-leads) #workspaceNoteStatus{font-size:12px;color:var(--muted,#738196);margin-right:auto}
body.page-outreach:not(.page-leads) #crmStatus[hidden],body.page-outreach:not(.page-leads) #shNoLead[hidden]{display:none!important}
body.sh-no-selected-lead .outreach-workspace-layout,body.sh-no-selected-lead .outreach-lower-grid{display:none!important}
html[data-theme="dark"] body.page-outreach:not(.page-leads) .sh-ref-action:not(.primary){background:#162b43;color:#f1f6ff;border-color:#34506a}
html[data-theme="dark"] body.page-outreach:not(.page-leads) .sh-ref-tag{background:#1c3a5a;border-color:#32577b;color:#d9edff}
html[data-theme="dark"] body.page-outreach:not(.page-leads) .sh-ref-notes p{color:#becce0}
html[data-theme="dark"] body.page-outreach:not(.page-leads) .workspace-change-lead{background:#182f49;color:#e6f2ff;border-color:#39536b}
@media(max-width:1050px){body.page-outreach:not(.page-leads) .outreach-workspace-layout{grid-template-columns:minmax(0,1fr)!important}body.page-outreach:not(.page-leads) .outreach-lower-grid{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:700px){body.page-outreach:not(.page-leads) main.content{padding:14px 12px 35px!important}body.page-outreach:not(.page-leads) .sh-reference-toolbar{flex-wrap:wrap}body.page-outreach:not(.page-leads) .sh-ref-heading{grid-template-columns:50px minmax(0,1fr) auto}body.page-outreach:not(.page-leads) .sh-ref-company-icon{width:50px;height:50px}body.page-outreach:not(.page-leads) .sh-ref-stat-row{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:16px}body.page-outreach:not(.page-leads) .sh-ref-stat:nth-child(2){border-right:0}body.page-outreach:not(.page-leads) .sh-ref-stat:nth-child(3){padding-left:0}body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card{padding:17px!important}}

/* Compact desktop workspace — fits the four cards in a normal laptop viewport.
   Kept desktop-only; on shorter windows the main page remains scrollable. */
@media (min-width:1051px) {
 body.page-outreach:not(.page-leads) main.content { padding:10px 20px 15px!important; min-height:0!important; }
 body.page-outreach:not(.page-leads) .sh-reference-toolbar { min-height:38px;padding-bottom:8px;gap:8px;font-size:12px; }
 body.page-outreach:not(.page-leads) .workspace-change-lead { min-height:34px;padding:5px 12px;font-size:12px; }
 body.page-outreach:not(.page-leads) .outreach-workspace-layout { grid-template-columns:minmax(0,1fr) 255px!important;gap:12px!important;align-items:stretch!important; }
 body.page-outreach:not(.page-leads) #selectedLeadTop>.lead-card {padding:12px 16px!important;border-radius:14px!important;}
 body.page-outreach:not(.page-leads) .sh-ref-heading {grid-template-columns:45px minmax(0,1fr) auto;gap:9px;padding-bottom:8px;}
 body.page-outreach:not(.page-leads) .sh-ref-company-icon {width:44px;height:44px;border-radius:11px;}
 body.page-outreach:not(.page-leads) .sh-ref-company-icon svg {width:23px;height:23px;}
 body.page-outreach:not(.page-leads) .sh-ref-company-heading {gap:5px 8px;}
 body.page-outreach:not(.page-leads) .sh-ref-company-heading h2 {font-size:19px;}
 body.page-outreach:not(.page-leads) .sh-ref-subtitle {font-size:11px;margin:3px 0 0;}
 body.page-outreach:not(.page-leads) .sh-ref-tags {gap:4px;}
 body.page-outreach:not(.page-leads) .sh-ref-tag {font-size:10px;padding:3px 7px;}
 body.page-outreach:not(.page-leads) .sh-ref-star {min-height:30px;min-width:30px;}
 body.page-outreach:not(.page-leads) .sh-ref-star svg {width:19px;height:19px;}
 body.page-outreach:not(.page-leads) .sh-ref-stat-row {padding:5px 0 9px;}
 body.page-outreach:not(.page-leads) .sh-ref-stat {padding:2px 9px;}
 body.page-outreach:not(.page-leads) .sh-ref-label {font-size:10px;gap:5px;margin-bottom:4px;}
 body.page-outreach:not(.page-leads) .sh-ref-label svg {width:15px;height:15px;}
 body.page-outreach:not(.page-leads) .sh-ref-value {font-size:13px;}
 body.page-outreach:not(.page-leads) .sh-ref-small {font-size:10px;margin-top:2px;}
 body.page-outreach:not(.page-leads) .sh-ref-status {font-size:10px;padding:4px 7px;}
 body.page-outreach:not(.page-leads) .sh-ref-notes {min-height:0;padding:9px 0 11px;grid-template-columns:19px minmax(0,1fr);gap:9px;}
 body.page-outreach:not(.page-leads) .sh-ref-notes>svg {width:18px;height:18px;}
 body.page-outreach:not(.page-leads) .sh-ref-notes h3 {font-size:12px;margin-bottom:3px;}
 body.page-outreach:not(.page-leads) .sh-ref-notes p {font-size:11px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;}
 body.page-outreach:not(.page-leads) .sh-ref-actions {gap:5px;flex-wrap:nowrap;}
 body.page-outreach:not(.page-leads) .sh-ref-action {min-height:37px;padding:6px 8px;font-size:10px;gap:5px;white-space:normal;text-align:center;line-height:1.2;}
 body.page-outreach:not(.page-leads) .sh-ref-action svg {width:14px;height:14px;flex:none;}
 body.page-outreach:not(.page-leads) .workspace-card {padding:12px 14px!important;border-radius:14px;}
 body.page-outreach:not(.page-leads) .workspace-card-head {margin-bottom:10px;gap:7px;}
 body.page-outreach:not(.page-leads) .workspace-card-head h2 {font-size:14px;}
 body.page-outreach:not(.page-leads) .workspace-card-head svg {width:17px;height:17px;}
 body.page-outreach:not(.page-leads) .workspace-side-stack {gap:9px;}
 body.page-outreach:not(.page-leads) .workspace-side-block+.workspace-side-block {padding-top:9px;}
 body.page-outreach:not(.page-leads) .workspace-side-label {font-size:11px;margin-bottom:5px;}
 body.page-outreach:not(.page-leads) .workspace-side-label svg {height:15px;width:15px;}
 body.page-outreach:not(.page-leads) .workspace-callout {padding:8px;font-size:11px;line-height:1.35;}
 body.page-outreach:not(.page-leads) .workspace-side-text {font-size:12px;}
 body.page-outreach:not(.page-leads) .workspace-side-subtext {font-size:10px;margin-top:2px;}
 body.page-outreach:not(.page-leads) .outreach-lower-grid {gap:12px!important;margin:12px 0 0!important;}
 body.page-outreach:not(.page-leads) .workspace-activity-list {gap:7px;}
 body.page-outreach:not(.page-leads) .workspace-activity-item {gap:8px;}
 body.page-outreach:not(.page-leads) .workspace-activity-dot {height:28px;width:28px;}
 body.page-outreach:not(.page-leads) .workspace-activity-dot svg {height:15px;width:15px;}
 body.page-outreach:not(.page-leads) .workspace-activity-title {font-size:11px;}
 body.page-outreach:not(.page-leads) .workspace-activity-copy {font-size:10px;line-height:1.35;margin:2px 0 0;}
 body.page-outreach:not(.page-leads) .workspace-notes-form {gap:8px;}
 body.page-outreach:not(.page-leads) .workspace-notes-form textarea {min-height:76px;max-height:120px;padding:9px;font-size:12px;}
 body.page-outreach:not(.page-leads) .workspace-save-note {min-height:32px;padding:5px 12px;font-size:11px;}
}

/* Mobile Outreach: keep the page scroll contained within the app viewport.
   The sidebar is independently scrollable via sidebar.css. */
@media (max-width:899px) {
  body.page-outreach:not(.page-leads):has(.sh-sidebar) .app {
    height:100vh!important;
    height:100dvh!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
  }
  body.page-outreach:not(.page-leads):has(.sh-sidebar) .topbar {
    position:sticky;
    top:0;
    z-index:20;
  }
  body.page-outreach.sh-menu-open:not(.page-leads):has(.sh-sidebar) .app {
    overflow-y:hidden!important;
  }
}

/* iOS mobile: do not clip the page behind the browser's bottom safe-area/chrome. */
@media (max-width:899px) {
  html:has(body.page-outreach .sh-sidebar),
  body.page-outreach:has(.sh-sidebar) {
    height:auto!important;
    min-height:100%!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto;
  }
  body.page-outreach:not(.page-leads) .app,
  body.page-outreach:not(.page-leads):has(.sh-sidebar) .app {
    height:auto!important;
    min-height:100dvh!important;
    overflow-y:visible!important;
    overflow-x:clip!important;
    padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))!important;
  }
  body.page-outreach:not(.page-leads) main.content {
    padding-bottom:calc(40px + env(safe-area-inset-bottom,0px))!important;
  }
  body.page-outreach.sh-menu-open:has(.sh-sidebar) {overflow:hidden!important;}
}
