/* =========================================================================
   GFI Heroes — the lead record (2026-10-14, ported from the Pledge tracker)
   The record pop-up: identity header, Activity / Details tabs, follow-up bar,
   note composer and the timeline, plus the due badge on board cards, the
   stage control in the header and the "no number yet" box on a new lead.

   Everything reads from the tracker's tokens (--panel, --line, --text, --muted) with
   navy for the brand and gold for "due today". Every dark fill carries bold
   white text. One typeface throughout — the app's Inter.
   ========================================================================= */

/* ---------------------------------------------------------------- the shell */

.modal.crm-editor{ max-width:760px; }
.modal.crm-editor .modal-b{ padding:0; }

/* ---- identity header ---- */

.crm-head{
  display:flex; align-items:flex-start; gap:13px;
  padding:14px 22px 14px;
  border-bottom:1px solid var(--line);
  background:var(--panel2);
}
.crmh-av{
  flex:none; width:42px; height:42px; border-radius:11px;
  display:grid; place-items:center;
  background:linear-gradient(160deg,#163B78,#00205A);
  color:#fff; font-weight:800; font-size:14px; letter-spacing:.4px;
}
.crmh-id{ min-width:0; flex:1; }
.crmh-name{
  font-size:17px; font-weight:800; color:var(--text); line-height:1.2;
  text-wrap:balance; overflow-wrap:anywhere;
}
.crmh-untitled{ color:var(--muted2); font-weight:700; font-style:normal; }
.crmh-meta{
  margin-top:3px; font-size:12px; color:var(--muted);
  text-wrap:pretty; overflow-wrap:anywhere;
}
.crmh-pills{ display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.crmh-pill{
  display:inline-flex; align-items:center; height:20px; padding:0 9px;
  border-radius:999px; font-size:10.5px; font-weight:800; letter-spacing:.3px;
  background:var(--panel3); color:var(--muted); border:1px solid var(--line);
}
.crmh-pill.on{ background:rgba(46,111,214,.14); color:#103B7E; border-color:rgba(46,111,214,.4); }
.crmh-r-hot{  background:rgba(214,69,47,.12);  color:#A8341F; border-color:rgba(214,69,47,.34); }
.crmh-r-warm{ background:rgba(214,146,20,.14); color:#8A5A05; border-color:rgba(214,146,20,.36); }
.crmh-r-cold{ background:rgba(45,110,170,.12); color:#1C4F80; border-color:rgba(45,110,170,.32); }

.crmh-acts{ display:flex; gap:6px; flex:none; }
.crmh-act{
  display:inline-flex; align-items:center; gap:6px;
  height:32px; padding:0 11px; border-radius:8px;
  border:1px solid var(--line2); background:var(--panel);
  color:var(--text); font-size:12px; font-weight:700; text-decoration:none;
  transition:background .14s, border-color .14s;
}
.crmh-act svg{ width:15px; height:15px; color:#2E6FD6; }
.crmh-act:hover{ background:var(--panel3); border-color:#2E6FD6; }

/* ---- tabs ---- */

.crm-tabs{
  display:flex; gap:4px; padding:10px 22px 0;
  border-bottom:1px solid var(--line); background:var(--panel2);
}
.crm-tab{
  position:relative; appearance:none; border:0; background:none; cursor:pointer;
  font:inherit; font-size:12.5px; font-weight:800; letter-spacing:.2px;
  color:var(--muted); padding:8px 13px 10px; border-radius:8px 8px 0 0;
}
.crm-tab:hover{ color:var(--text); background:var(--panel3); }
.crm-tab.on{ color:var(--text); }
.crm-tab.on::after{
  content:""; position:absolute; left:11px; right:11px; bottom:-1px;
  height:2.5px; border-radius:3px 3px 0 0; background:#2E6FD6;
}
.crm-tab:focus-visible{ outline:2px solid #2E6FD6; outline-offset:-2px; }

.crm-pane{ padding:16px 22px 20px; }
[data-lcpane="details"]{ padding:18px 22px; }
.crm-editor [data-lcpane="details"] > :first-child{ margin-top:0; }

/* ------------------------------------------------------------- follow-up bar */

.crm-fu{
  border:1px solid var(--line); border-radius:11px;
  background:var(--panel2); padding:11px 13px; margin-bottom:14px;
}
.crm-fu.set{ border-color:rgba(46,111,214,.38); background:rgba(46,111,214,.06); }
.crm-fu.crm-fu-overdue{ border-color:rgba(190,62,42,.45); background:rgba(190,62,42,.07); }

.crm-fu-row{ display:flex; align-items:center; gap:10px; }
.crm-fu-ic{ flex:none; display:grid; place-items:center; width:26px; height:26px; border-radius:8px;
  background:var(--panel3); color:var(--muted); }
.crm-fu-ic svg{ width:15px; height:15px; }
.crm-fu.set .crm-fu-ic{ background:rgba(46,111,214,.16); color:#103B7E; }
.crm-fu.crm-fu-overdue .crm-fu-ic{ background:rgba(190,62,42,.14); color:#A8341F; }
.crm-fu-txt{ min-width:0; flex:1; }
.crm-fu-lab{ font-size:10px; font-weight:800; letter-spacing:1.3px; text-transform:uppercase; color:var(--muted2); }
.crm-fu-when{ font-size:13.5px; font-weight:800; color:var(--text); margin-top:1px; }
.crm-fu-flag{
  display:inline-block; margin-left:6px; padding:1px 7px; border-radius:999px;
  background:rgba(190,62,42,.14); color:#A8341F; font-size:10px; font-weight:800; letter-spacing:.3px;
  vertical-align:1px;
}
.crm-fu-note{ font-size:12px; color:var(--muted); margin-top:2px; text-wrap:pretty; }
.crm-fu-clear{
  flex:none; appearance:none; border:1px solid var(--line2); background:var(--panel);
  color:var(--muted); font:inherit; font-size:11.5px; font-weight:700;
  height:28px; padding:0 11px; border-radius:7px; cursor:pointer;
}
.crm-fu-clear:hover{ color:var(--text); border-color:var(--line2); background:var(--panel3); }

.crm-fu-sets{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.crm-qs{
  appearance:none; border:1px solid var(--line2); background:var(--panel);
  color:var(--text); font:inherit; font-size:11.5px; font-weight:700;
  height:30px; padding:0 11px; border-radius:999px; cursor:pointer;
  display:inline-flex; align-items:center; gap:5px;
  transition:background .14s, border-color .14s;
}
.crm-qs:hover{ background:rgba(46,111,214,.1); border-color:#2E6FD6; }
.crm-qs-pick{ position:relative; overflow:hidden; }
/* the picker fills its own chip, so the whole pill is the hit target and the
   native calendar opens where the chip is */
.crm-qs-pick input{
  position:absolute; inset:0; width:100%; height:100%;
  opacity:0; cursor:pointer; border:0; padding:0;
}
.crm-fu-in{
  flex:1 1 190px; min-width:140px; height:30px;
  border:1px solid var(--line); border-radius:8px; background:var(--panel);
  color:var(--text); font:inherit; font-size:12px; padding:0 10px;
}
.crm-fu-in::placeholder{ color:var(--muted2); }
.crm-fu-in:focus{ outline:none; border-color:#2E6FD6; box-shadow:0 0 0 3px rgba(46,111,214,.14); }

/* ---------------------------------------------------------------- composer */

.crm-comp{
  border:1px solid var(--line2); border-radius:11px; background:var(--panel);
  padding:10px 11px 9px; margin-bottom:16px;
  transition:border-color .14s, box-shadow .18s;
}
.crm-comp:focus-within{ border-color:#2E6FD6; box-shadow:0 0 0 3px rgba(46,111,214,.12); }
.crm-comp textarea{
  display:block; width:100%; min-height:46px; max-height:220px; resize:none;
  border:0; background:none; color:var(--text); font:inherit; font-size:13px;
  line-height:1.5; padding:2px 2px 6px;
}
.crm-comp textarea:focus{ outline:none; }
.crm-comp textarea::placeholder{ color:var(--muted2); }
.crm-comp-f{ display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.crm-comp-hint{ font-size:10.5px; color:var(--muted2); font-weight:600; }
.crm-comp-save{
  appearance:none; border:0; cursor:pointer; font:inherit;
  height:31px; padding:0 15px; border-radius:8px;
  background:#00205A; color:#fff; font-size:12px; font-weight:800; letter-spacing:.2px;
  transition:background .14s, opacity .14s;
}
.crm-comp-save:hover:not(:disabled){ background:#103B7E; }
.crm-comp-save:disabled{ opacity:.42; cursor:default; }
.crm-comp-err{
  margin-top:8px; font-size:11.5px; font-weight:600; color:#A8341F;
  background:rgba(190,62,42,.09); border:1px solid rgba(190,62,42,.28);
  border-radius:7px; padding:6px 9px; text-wrap:pretty;
}

/* ---------------------------------------------------------------- timeline */

.crm-stream-list{ list-style:none; margin:0; padding:0; }

.crm-e{
  position:relative; display:flex; gap:11px;
  padding:0 0 15px 0;
}
/* the rail: a line from one marker to the next, stopping at the last entry */
.crm-e::before{
  content:""; position:absolute; left:12.5px; top:26px; bottom:0; width:1.5px;
  background:var(--line);
}
.crm-e:last-child::before{ display:none; }

.crm-e-dot{
  position:relative; z-index:1; flex:none;
  width:26px; height:26px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--panel); border:1.5px solid rgba(46,111,214,.45); color:#00205A;
}
.crm-e-dot svg{ width:13px; height:13px; }
.crm-e-event .crm-e-dot{ border-color:var(--line2); color:var(--muted); background:var(--panel2); }

.crm-e-body{ min-width:0; flex:1; padding-top:2px; }
.crm-e-meta{ display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.crm-e-when{ font-size:11px; font-weight:800; color:var(--text); letter-spacing:.1px; }
.crm-e-who{ font-size:11px; color:var(--muted2); font-weight:600; }
.crm-e-ed{ font-size:10px; color:var(--muted2); font-style:italic; }
.crm-e-text{
  margin-top:3px; font-size:13px; line-height:1.55; color:var(--text);
  white-space:pre-wrap; overflow-wrap:anywhere; text-wrap:pretty;
}
.crm-e-event .crm-e-text{ color:var(--muted); font-size:12.5px; font-weight:600; }

.crm-e-more{
  flex:none; appearance:none; border:0; background:none; cursor:pointer;
  width:26px; height:26px; border-radius:7px; color:var(--muted2);
  display:grid; place-items:center; opacity:0; transition:opacity .14s, background .14s;
}
.crm-e-more svg{ width:16px; height:16px; }
.crm-e:hover .crm-e-more,
.crm-e-more:focus-visible,
.crm-e-more[aria-expanded="true"]{ opacity:1; }
.crm-e-more:hover{ background:var(--panel3); color:var(--text); }
/* a pointer-less device never hovers, so the control is simply always there */
@media (hover:none){ .crm-e-more{ opacity:1; } }

.crm-e-menu{
  position:absolute; right:0; top:26px; z-index:3;
  background:var(--panel); border:1px solid var(--line2); border-radius:9px;
  box-shadow:0 16px 34px -18px rgba(0,0,0,.45); padding:4px; min-width:122px;
}
.crm-e-menu button{
  display:block; width:100%; text-align:left; appearance:none; border:0; background:none;
  font:inherit; font-size:12px; font-weight:600; color:var(--text);
  padding:7px 10px; border-radius:6px; cursor:pointer;
}
.crm-e-menu button:hover{ background:var(--panel3); }
.crm-e-menu button[data-act="del"]{ color:#A8341F; }

.crm-e-edit{ margin-top:5px; }
.crm-e-ta{
  display:block; width:100%; resize:vertical; min-height:68px;
  border:1px solid #2E6FD6; border-radius:9px; background:var(--panel);
  color:var(--text); font:inherit; font-size:13px; line-height:1.5; padding:8px 10px;
}
.crm-e-ta:focus{ outline:none; box-shadow:0 0 0 3px rgba(46,111,214,.14); }
.crm-e-edit-f{ display:flex; justify-content:flex-end; gap:7px; margin-top:7px; }
.crm-e-cancel, .crm-e-save{
  appearance:none; cursor:pointer; font:inherit; font-size:11.5px; font-weight:700;
  height:29px; padding:0 13px; border-radius:7px;
}
.crm-e-cancel{ border:1px solid var(--line2); background:var(--panel); color:var(--muted); }
.crm-e-cancel:hover{ color:var(--text); background:var(--panel3); }
.crm-e-save{ border:0; background:#00205A; color:#fff; }
.crm-e-save:hover{ background:#103B7E; }

.crm-e-confirm{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px;
  background:rgba(190,62,42,.07); border:1px solid rgba(190,62,42,.26);
  border-radius:8px; padding:7px 9px;
  font-size:12px; font-weight:700; color:var(--text);
}
.crm-e-confirm button{
  appearance:none; cursor:pointer; font:inherit; font-size:11.5px; font-weight:700;
  height:26px; padding:0 11px; border-radius:6px;
  border:1px solid var(--line2); background:var(--panel); color:var(--text);
}
.crm-e-confirm button.danger{ border-color:transparent; background:#B5402B; color:#fff; }
.crm-e-confirm button.danger:hover{ background:#9C3522; }
.crm-e-err{
  margin-top:7px; font-size:11.5px; font-weight:600; color:#A8341F; text-wrap:pretty;
}

/* ---- empty, loading, error, legacy ---- */

.crm-empty{ display:flex; align-items:center; gap:12px; text-align:left; padding:14px 16px; margin:4px 0 12px; border-radius:12px; background:#F6F8FC; border:1px solid #E4EAF3; color:var(--muted2); }
.crm-empty svg{ width:22px; height:22px; opacity:.55; flex:none; }
.crm-empty-t{ margin:0; font-size:13px; font-weight:800; color:var(--muted); }
.crm-empty-s{ margin-top:3px; font-size:11.5px; text-wrap:pretty; }

.crm-loading{ padding:22px 4px; font-size:12.5px; color:var(--muted2); font-weight:600; }
.crm-err{
  padding:12px 13px; border-radius:9px; font-size:12px; font-weight:600;
  background:rgba(190,62,42,.08); border:1px solid rgba(190,62,42,.26); color:#A8341F;
  text-wrap:pretty;
}
.crm-retry{
  appearance:none; border:1px solid currentColor; background:none; color:inherit;
  font:inherit; font-size:11.5px; font-weight:700; height:25px; padding:0 10px;
  border-radius:6px; cursor:pointer; margin-left:6px;
}

.crm-leg{
  margin-top:4px; padding:12px 13px; border-radius:10px;
  background:var(--panel2); border:1px dashed var(--line2);
}
.crm-leg-h{ font-size:10px; font-weight:800; letter-spacing:1.3px; text-transform:uppercase; color:var(--muted2); }
.crm-leg-b{ margin-top:8px; }
.crm-leg-k{ font-size:10.5px; font-weight:800; color:var(--muted); letter-spacing:.3px; }
.crm-leg-v{
  font-size:12.5px; line-height:1.55; color:var(--text); white-space:pre-wrap;
  overflow-wrap:anywhere; text-wrap:pretty; margin-top:2px;
}
.crm-leg-f{ margin-top:9px; font-size:10.5px; color:var(--muted2); text-wrap:pretty; }

.crm-off{
  padding:20px 18px; border-radius:11px; text-align:center;
  background:var(--panel2); border:1px dashed var(--line2);
}
.crm-off-t{ font-size:13.5px; font-weight:800; color:var(--text); text-wrap:balance; }
.crm-off-s{ margin-top:5px; font-size:12px; color:var(--muted); line-height:1.55; text-wrap:pretty; }

/* -------------------------------------------- follow-up strip above a list */

.crm-strip{
  display:flex; align-items:center; flex-wrap:wrap; gap:7px;
  margin:0 0 12px; padding:9px 12px;
  border:1px solid var(--line); border-radius:11px; background:var(--panel2);
}
.crms-h{ display:inline-flex; align-items:center; gap:6px; margin-right:3px;
  font-size:10px; font-weight:800; letter-spacing:1.3px; text-transform:uppercase; color:var(--muted2); }
.crms-h svg{ width:14px; height:14px; }
.crms-chip{
  appearance:none; cursor:pointer; font:inherit;
  display:inline-flex; align-items:center; gap:7px;
  height:29px; padding:0 12px; border-radius:999px;
  border:1px solid var(--line2); background:var(--panel); color:var(--text);
  transition:background .14s, border-color .14s;
}
.crms-n{ font-size:12.5px; font-weight:800; }
.crms-l{ font-size:11.5px; font-weight:700; color:var(--muted); }
.crms-chip:hover{ background:var(--panel3); }
.crms-chip.on .crms-l{ color:inherit; }
.crms-over.on{ background:rgba(190,62,42,.12); border-color:rgba(190,62,42,.45); color:#A8341F; }
.crms-today.on{ background:rgba(228,180,90,.2); border-color:rgba(201,147,47,.5); color:#6B4A00; }
.crms-week.on{ background:rgba(45,110,170,.11); border-color:rgba(45,110,170,.4); color:#1C4F80; }
.crms-clear{
  appearance:none; cursor:pointer; font:inherit; font-size:11.5px; font-weight:700;
  border:0; background:none; color:var(--muted); text-decoration:underline;
  text-underline-offset:3px; padding:0 4px; margin-left:2px;
}
.crms-clear:hover{ color:var(--text); }

.crm-fempty{ text-align:center; padding:30px 16px; }
.crm-fempty-t{ font-size:14px; font-weight:800; color:var(--muted); text-wrap:balance; }
.crm-fempty-b{
  margin-top:10px; appearance:none; cursor:pointer; font:inherit;
  font-size:12px; font-weight:700; height:31px; padding:0 14px; border-radius:8px;
  border:1px solid var(--line2); background:var(--panel); color:var(--text);
}
.crm-fempty-b:hover{ background:var(--panel3); border-color:#2E6FD6; }

/* ---------------------------------------------- the due badge on a card/row */

.crm-due{
  display:inline-flex; align-items:center; gap:4px;
  height:20px; padding:0 8px; border-radius:999px;
  font-size:10px; font-weight:800; letter-spacing:.2px; white-space:nowrap;
  background:var(--panel3); color:var(--muted); border:1px solid var(--line);
}
.crm-due svg{ width:11px; height:11px; }
.crm-due-overdue{ background:rgba(190,62,42,.12); color:#A8341F; border-color:rgba(190,62,42,.4); }
.crm-due-today{ background:rgba(228,180,90,.2); color:#6B4A00; border-color:rgba(201,147,47,.48); }
.crm-due-soon{ background:rgba(45,110,170,.1); color:#1C4F80; border-color:rgba(45,110,170,.32); }

/* ===================================================================== dark */

/* =================================================================== mobile */

@media (max-width:760px){
  .crm-head{ padding:12px 16px; gap:11px; flex-wrap:wrap; }
  .crmh-av{ width:38px; height:38px; font-size:13px; }
  .crmh-name{ font-size:16px; }
  /* the actions drop to their own full-width row rather than squeezing the name */
  .crmh-acts{ width:100%; order:3; }
  .crmh-act{ flex:1 1 0; justify-content:center; height:34px; }
  .crm-tabs{ padding:9px 16px 0; }
  .crm-pane{ padding:14px 16px 18px; }
  [data-lcpane="details"]{ padding:16px; }
  .crm-fu-sets{ gap:5px; }
  .crm-qs{ height:32px; }
  .crm-fu-in{ flex:1 1 100%; height:34px; }
  .crm-comp textarea{ font-size:16px; }   /* 16px stops iOS zooming the page on focus */
  .crm-e-ta{ font-size:16px; }
  .crm-strip{ padding:8px 10px; }
  .crms-h{ width:100%; margin-bottom:2px; }
  .crms-chip{ flex:1 1 auto; justify-content:center; }
}

@media (max-width:420px){
  .crm-e{ gap:9px; }
  .crm-e-text{ font-size:12.5px; }
  .crm-tab{ padding:8px 10px 10px; font-size:12px; }
}

@media (prefers-reduced-motion:reduce){
  .crmh-act, .crm-qs, .crms-chip, .crm-comp, .crm-e-more{ transition:none; }
}

/* The status switches sit between the header and the tabs: one click from
   either pane, because flipping Called is the most common thing on a record
   and it is what the timeline logs. */
.crm-editor .switch-row.crm-switches{
  display:flex; flex-wrap:wrap; gap:7px; margin:0;
  padding:11px 22px; border-bottom:1px solid var(--line); background:var(--panel2);
}

@media (max-width:760px){
  .crm-editor .switch-row.crm-switches{ padding:10px 16px; }
}

/* The keyboard hint is for keyboards. */
@media (hover:none), (max-width:760px){
  .crm-comp-hint{ display:none; }
}
/* On a narrow screen the follow-up summary stacks, so the clock lines up with
   the first line of text rather than floating in the middle of three. */
@media (max-width:760px){
  .crm-fu-row{ align-items:flex-start; }
  .crm-fu-ic{ margin-top:1px; }
  .crm-fu-when{ font-size:13px; }
  .crm-fu-clear{ align-self:flex-start; }
}

/* ===========================================================================
   Wide screens: Details and Activity side by side, no tabs
   Hiding the record's own details behind a tab meant opening a contact and not
   seeing their phone number. Above 1040px there is room for both, so both show
   and the tab strip goes away; the tabs stay below that width, where there is
   not. [data-lcpane][hidden] is overridden rather than removing `hidden`,
   so the tab state is still intact if the window is narrowed again.
   ========================================================================= */
@media (min-width:1040px){
  /* A deliberate exception to the 640px pop-up cap in theme-lime.css, and the
     only one: this is the single surface in the app holding two separate bodies
     of content. 920px on a 1280 screen is still a dialog, not a page, and it
     stays well inside a laptop at 90% zoom. */
  .modal.crm-editor{ max-width:920px!important; }
  /* the field grid collapses to one column on its own rather than squeezing a
     phone number into 60px, which is what a fixed two-up did here */
  .crm-editor [data-lcpane="details"] .modal-grid{
    grid-template-columns:repeat(auto-fit,minmax(168px,1fr))!important;
  }
  .crm-editor .crm-tabs{ display:none; }
  /* one scroll for the whole record, so there is one scrollbar, at the
     pop-up's own edge — never one per column */
  .crm-editor .modal-b{
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); align-items:stretch;
  }
  .crm-editor [data-lcpane],
  .crm-editor [data-lcpane][hidden]{ display:block; min-width:0; }
  .crm-editor [data-lcpane="details"]{ order:1; border-right:1px solid var(--line); }
  .crm-editor [data-lcpane="activity"]{ order:2; }
  .crm-editor .crm-pane{ padding:18px 22px 22px; }
  /* a column heading each, so the two halves read as two things */
  .crm-editor [data-lcpane]::before{
    content:attr(data-lclabel); position:sticky; top:0; z-index:2; display:block;
    padding:11px 22px 9px; background:rgba(255,255,255,.96); backdrop-filter:blur(6px);
    font-size:10px; font-weight:800; letter-spacing:1.4px; text-transform:uppercase;
    color:var(--muted2); border-bottom:1px solid var(--line);
  }
  .crm-editor [data-lcpane="details"]{ padding-top:0; }
  /* the Details heading runs the full width of its column, like Activity's */
  .crm-editor [data-lcpane="details"]::before{ margin:0 -22px 16px; }
  .crm-editor [data-lcpane="activity"] .crm-pane{ padding-top:16px; }
}
@media (min-width:1040px) and (prefers-reduced-motion:no-preference){
  .crm-editor [data-lcpane]{ scroll-behavior:smooth; }
}

/* ===========================================================================
   The stage control in the record header
   It used to be eight pills taking five rows at the top of Details. As one
   dropdown it is a single line, and it lives in the dead space beside the
   pop-up title, which leaves Details for the record's own fields.
   ========================================================================= */
.crm-editor .modal-h{ align-items:center; gap:12px; }
.pb-hdr-stage{
  display:flex; align-items:center; gap:9px; margin-left:auto; min-width:0;
  padding:6px 10px 6px 12px; border-radius:10px;
  background:var(--panel2); border:1px solid var(--line);
}
.pb-hdr-k{
  flex:none; font-size:9.5px; font-weight:800; letter-spacing:1.3px;
  text-transform:uppercase; color:var(--muted2);
}
.pb-hdr-sel{ display:flex; align-items:center; gap:7px; min-width:0; }
.pb-hdr-dot{ flex:none; width:8px; height:8px; border-radius:50%; background:var(--c,#2E6FD6) }
.pb-hdr-stage select{
  appearance:auto; max-width:200px; min-width:0;
  border:0; background:none; font:inherit; font-size:12.5px; font-weight:700;
  color:var(--text); padding:2px 0; cursor:pointer;
}
.pb-hdr-stage select:disabled{ cursor:default; color:var(--muted) }
.pb-hdr-stage:focus-within{ border-color:#2E6FD6; box-shadow:0 0 0 3px rgba(46,111,214,.13) }

/* the send row keeps its own block in Details, without the stage above it */
.crm-editor .pb-movebar-send{ margin-bottom:14px; }

@media (max-width:760px){
  /* the title row has no spare width on a phone, so the stage takes its own line */
  .crm-editor .modal-h{ flex-wrap:wrap; }
  .pb-hdr-stage{ order:3; flex:1 1 100%; margin-left:0; }
  .pb-hdr-stage select{ max-width:none; flex:1 1 auto; }
}

/* "I don't have a number for them yet" on the new-lead sheet.
   A real checkbox, sized to be tappable, that parks the phone field instead of
   hiding it — the choice stays visible and stays untickable. */
.pc-nophone{
  display:flex; align-items:center; gap:9px; margin:-4px 0 4px;
  padding:9px 11px; border-radius:9px; cursor:pointer;
  background:var(--panel2); border:1px solid var(--line);
  font-size:12.5px; font-weight:600; color:var(--muted);
}
.pc-nophone:hover{ border-color:var(--line2); color:var(--text) }
.pc-nophone input{ width:17px; height:17px; flex:none; accent-color:#00205A; cursor:pointer }
.pc-nophone:has(input:checked){ background:rgba(46,111,214,.08); border-color:rgba(46,111,214,.4); color:var(--text) }


/* ===========================================================================
   The status switch lives in the header's pill row (pipeline-cards.js moves it
   there): one compact control instead of a pill plus a whole line for the
   switch.
   ========================================================================= */
.crmh-pills.crmh-has-sw{ align-items:center; gap:6px; margin-top:8px; }
.crm-head .switch{
  display:inline-flex; align-items:center; gap:7px; height:26px; margin:0;
  padding:0 11px 0 4px; border-radius:99px; border:1px solid #CBD5E4; background:#FFFFFF;
  color:var(--text); font-size:11.5px; font-weight:800; letter-spacing:.1px; cursor:pointer;
  transition:border-color .14s, background .14s;
}
.crm-head .switch .kn{ width:28px; height:18px; border-radius:18px; background:#C3CEDF; position:relative; flex:none; transition:background .15s; }
.crm-head .switch .kn::after{ content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#FFFFFF; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:left .15s; }
.crm-head .switch.on{ border-color:#7CCB9C; background:#EAF8F0; color:#0E6A36; }
.crm-head .switch.on .kn{ background:#1FA85A; }
.crm-head .switch.on .kn::after{ left:12px; }
.crm-head .switch:hover:not(:disabled){ border-color:var(--pl-blue,#2E6FD6); }
.crm-head .switch:focus-visible{ outline:2px solid #2E6FD6; outline-offset:2px; }
.crm-head .switch:disabled{ cursor:default; opacity:.75; }
.crmh-has-sw .crmh-pill{ height:26px; padding:0 11px; font-size:11px; }

/* a slim scrollbar that stays out of the way until the pointer is over it */
.crm-editor .modal-b{ scrollbar-width:thin; scrollbar-color:transparent transparent; }
.crm-editor .modal-b:hover{ scrollbar-color:#B9C5D8 transparent; }
