/* HC Sales v2 (Step A): the Deal page and the laptop preview panel.
   public/sales/deal.css. hcs-d- is the Deal page, hcs-p- the preview panel.
   Shared pills, tags, dots and buttons come from sales.css. Motion: 150ms on
   color, opacity and transform only. Phone: 16px gutter, 44px taps.
   Step B adds its own block (CRM on) before the laptop width rules. */
.hcs-d{display:flex;flex-direction:column;gap:16px;min-width:0}
.hcs-d h2,.hcs-d h3,.hcs-d h4,.hcs-p h2,.hcs-p h3{margin:0}
.hcs-d-link{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;color:var(--hcs-green);font-size:13px;font-weight:600;cursor:pointer;text-decoration:none;font-family:inherit}
.hcs-d-link:hover{text-decoration:underline}
.hcs-d-empty{color:var(--hcs-muted);font-style:italic}

/* Top bar: breadcrumb, previous and next, More */
.hcs-d-top{display:flex;align-items:center;gap:12px}
.hcs-d-crumb{display:flex;align-items:center;gap:6px;min-width:0;flex:1;color:var(--hcs-text2);font-size:13px}
.hcs-d-crumbname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hcs-text);font-weight:600}
.hcs-d-nav{display:inline-flex;align-items:center;gap:6px}
.hcs-d-navtext{font-size:12px;color:var(--hcs-text2);white-space:nowrap}
.hcs-iconbtn[disabled]{opacity:.4;cursor:default}

/* Duplicate banner (amber) */
.hcs-d-dup{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:8px;background:#fff4e0;border:1px solid #f2c47a;color:#7a4b00;font-size:13px}
.hcs-d-dupbody{flex:1;display:flex;flex-direction:column;gap:2px}

/* Header band (sticky under the Sales header) */
.hcs-d-band{position:sticky;top:calc(var(--hc-topbar-h,0px) + 56px);z-index:15;display:flex;align-items:flex-start;gap:16px;padding:16px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px}
.hcs-d-initials{width:56px;height:56px;font-size:18px}
.hcs-d-kind-couple{background:#fde8f1;color:#a3195b}.hcs-d-kind-company{background:#e6f0ff;color:#1f4f99}
.hcs-d-kind-planner{background:#f0e9ff;color:#5b2ea6}.hcs-d-kind-venue{background:#e0f7f6;color:#11706b}
.hcs-d-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hcs-d-nameline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hcs-d-name{font-size:24px;font-weight:700;line-height:1.2;overflow-wrap:anywhere}
.hcs-d-paid{font-size:13px;color:var(--hcs-text2);overflow-wrap:anywhere}
.hcs-d-tags,.hcs-d-facts{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hcs-d-tags:empty{display:none}
.hcs-d-act{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.hcs-d-stagebtn{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;cursor:pointer;color:var(--hcs-text2)}
.hcs-d-bigpill{height:32px;padding:0 14px;font-size:14px}
.hcs-btn.hcs-d-primary,.hcs-d-round.hcs-d-primary{background:var(--brand-fill);border-color:var(--brand-fill-press);color:var(--on-brand)}
.hcs-btn.hcs-d-primary:hover{background:var(--brand-fill-hover)}
.hcs-btn.hcs-d-primary:active,.hcs-d-round.hcs-d-primary:active{background:var(--brand-fill-press)}

/* Menus (More and the stage palette) */
.hcs-d-menu{position:absolute;right:16px;top:calc(100% - 8px);z-index:30;display:flex;flex-direction:column;min-width:240px;max-width:320px;padding:6px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px;box-shadow:0 8px 24px rgba(23,35,46,.14)}
.hcs-d-menuitem{min-height:36px;padding:0 10px;border:0;border-radius:6px;background:none;text-align:left;font-size:14px;color:var(--hcs-text);cursor:pointer;font-family:inherit;transition:background-color var(--hcs-t)}
.hcs-d-menuitem:hover{background:#f5f6f8}
.hcs-d-menunote{padding:6px 10px;font-size:12px;color:var(--hcs-text2)}

/* Stage bar */
.hcs-d-stages{display:flex;flex-direction:column;gap:8px;padding:12px 16px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px}
.hcs-d-steps{display:flex;gap:4px}
/* No background on the base class: the "on" step takes its stage color from
   the shared hcs-fill-<stage> class, the other states set their own. */
.hcs-d-step{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 10px;border-radius:6px}
/* A long money word (Invoice sent, not paid) wraps inside its step instead
   of running into the next one. */
.hcs-d-steplabel{display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;line-height:1.25}
.hcs-d-stepunder{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcs-d-step-done{background:#e5f9ef;color:#037f4c}
.hcs-d-step-skip{background:#f5f7f9;color:var(--hcs-muted)}
.hcs-d-step-todo{background:#fff;border:1px dashed var(--hcs-line2);color:var(--hcs-muted)}
.hcs-d-autoline{display:flex;align-items:center;gap:6px;font-size:13px;color:#037f4c}
.hcs-d-passed{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.hcs-d-passedline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}

/* Key fields drawer */
.hcs-d-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px 16px;padding:12px 16px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px}
.hcs-d-field{display:flex;flex-direction:column;gap:2px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.hcs-d-fieldk{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;color:var(--hcs-text2);text-transform:uppercase;letter-spacing:.04em}
.hcs-d-reddot{width:8px;height:8px;border-radius:50%;background:var(--hcs-red)}

/* The 4 tiles */
.hcs-d-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hcs-d-tiles2{grid-template-columns:repeat(2,minmax(0,1fr))}
.hcs-d-tile{display:flex;flex-direction:column;gap:4px;min-height:92px;padding:12px 14px;background:#fff;border:1px solid var(--hcs-line);border-top:4px solid var(--hcs-line2);border-radius:8px;color:var(--hcs-text);text-decoration:none;min-width:0}
.hcs-d-tile-link{cursor:pointer;transition:border-color var(--hcs-t)}
.hcs-d-tile-link:hover{border-color:var(--hcs-green)}
.hcs-d-tile-red{border-top-color:var(--hcs-red);background:#fdeef0}
.hcs-d-tile-orange{border-top-color:var(--hcs-orange)}
.hcs-d-tile-green{border-top-color:var(--hcs-done)}
.hcs-d-tlabel{font-size:12px;font-weight:600;color:var(--hcs-text2)}
.hcs-d-tbig{font-size:20px;font-weight:800;line-height:1.2;overflow-wrap:anywhere}
.hcs-d-tsub{font-size:12px;color:var(--hcs-text2);overflow-wrap:anywhere}

/* Three columns: Event sheet, timeline, people and the rest */
.hcs-d-cols{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr) minmax(220px,300px);gap:16px;align-items:start}
.hcs-d-left,.hcs-d-mid,.hcs-d-right{display:flex;flex-direction:column;gap:12px;min-width:0}
.hcs-d-sechead{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.hcs-d-sechead h3{font-size:16px;font-weight:700}
.hcs-d-card{background:#fff;border:1px solid var(--hcs-line);border-radius:8px}
.hcs-d-cardhead{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:8px 12px;border:0;background:none;text-align:left;cursor:pointer;font-family:inherit;color:var(--hcs-text)}
.hcs-d-cardtitle{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0;font-size:14px;font-weight:700}
.hcs-d-cardsum{font-size:12px;font-weight:400;color:var(--hcs-text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hcs-d-cardbody{display:flex;flex-direction:column;gap:8px;padding:0 12px 12px}
.hcs-d-fact{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;font-size:13px;align-items:start}
.hcs-d-factk{color:var(--hcs-text2)}
.hcs-d-factv{min-width:0;overflow-wrap:anywhere}
.hcs-d-amber{padding:8px 10px;border-radius:6px;background:#fff4e0;color:#7a4b00;font-size:13px;font-weight:600}
.hcs-d-about{display:flex;flex-direction:column;gap:8px}
.hcs-d-note{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px solid var(--hcs-line)}
.hcs-d-notehead{font-size:12px;font-weight:700;color:var(--hcs-text2)}
.hcs-d-notetext{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}

/* Timeline */
.hcs-d-timeline{display:flex;flex-direction:column;gap:10px}
.hcs-d-chips{display:flex;flex-wrap:wrap;gap:6px}
.hcs-d-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid var(--hcs-line2);font-size:13px;color:var(--hcs-text);cursor:pointer;font-family:inherit;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-d-chip span{color:var(--hcs-muted);font-size:12px}
.hcs-d-chip.hcs-on{background:var(--soft-fill);border-color:var(--soft-edge);color:var(--on-soft);font-weight:600}
.hcs-d-chip.hcs-on span{color:var(--on-soft-2)}
.hcs-d-month{padding-top:6px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hcs-muted)}
.hcs-d-tl{display:flex;gap:10px;align-items:flex-start}
.hcs-d-tlicon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#e6e9ef;color:var(--hcs-text2)}
.hcs-d-tone-green{background:#00c875;color:#323338}.hcs-d-tone-pink{background:#e50073;color:#fff}
.hcs-d-tone-orange{background:#fdab3d;color:#323338}.hcs-d-tone-navy{background:#225091;color:#fff}
.hcs-d-tone-deep{background:#037f4c;color:#fff}.hcs-d-tone-gray{background:#e6e9ef;color:#676879}
.hcs-d-tlbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hcs-d-tltitle{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.hcs-d-tldetail{font-size:13px;color:var(--hcs-text2);overflow-wrap:anywhere}
.hcs-d-tlwhen{font-size:12px;color:var(--hcs-muted)}
.hcs-d-auto{display:inline-flex;align-items:center;gap:2px;margin-left:6px;color:#037f4c}
.hcs-d-change{display:inline-flex;align-items:center;gap:4px}
.hcs-d-mini{height:20px;padding:0 8px;font-size:11px}

/* Right side boxes */
.hcs-d-box{display:flex;flex-direction:column;gap:6px;padding:12px 14px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px;font-size:13px;overflow-wrap:anywhere}
.hcs-d-boxhead{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hcs-text2)}
.hcs-d-boxhead span{color:var(--hcs-muted)}
.hcs-d-person{display:flex;align-items:center;gap:10px}
.hcs-d-pname{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.hcs-d-prow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--hcs-line)}
.hcs-d-prow:first-of-type{border-top:0}
.hcs-d-pmain{flex:1 1 170px;min-width:0;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.hcs-d-picons{display:inline-flex;gap:6px}
/* D1: a phone number never breaks in the middle; the icons wrap under it. */
.hcs-d-pphone{white-space:nowrap}
.hcs-d-orow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%;min-height:44px;padding:6px 0;border:0;border-top:1px solid var(--hcs-line);background:none;text-align:left;cursor:pointer;font-family:inherit;color:var(--hcs-text);transition:background-color var(--hcs-t)}
.hcs-d-orow:hover{background:#f7f8fa}
.hcs-d-oname{font-weight:600;overflow-wrap:anywhere}
.hcs-d-oline{flex-basis:100%;font-size:12px;color:var(--hcs-text2)}

/* Round buttons (phone and preview): Email, Call, Text, More */
.hcs-d-rounds{display:flex;justify-content:space-around;gap:8px}
.hcs-d-round{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:64px;min-height:64px;padding:6px;border:1px solid var(--hcs-line2);border-radius:999px;background:#fff;color:var(--hcs-text);font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;font-family:inherit;transition:background-color var(--hcs-t)}
.hcs-d-round[disabled]{opacity:.45;cursor:not-allowed}
.hcs-d-round:hover{background:#f5f6f8}
.hcs-d-round.hcs-d-primary:hover{background:var(--brand-fill-hover)}

/* Laptop preview panel (440px, right) */
.hcs-p{display:flex;flex-direction:column;gap:14px;padding:16px 20px 24px;position:relative;color:var(--hcs-text);font-size:14px}
.hcs-p *{box-sizing:border-box}
.hcs-p-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hcs-p-head{display:flex;flex-direction:column;gap:8px}
.hcs-p-name{font-size:20px;font-weight:700;overflow-wrap:anywhere}
.hcs-p-pills{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hcs-p-full{justify-content:center}
.hcs-p-menu{top:auto;right:20px;margin-top:-8px;position:relative;align-self:flex-end}
.hcs-p-ready{display:flex;flex-direction:column;gap:8px}
.hcs-p-pillrow{display:inline-flex;align-items:center;gap:6px;margin:0 10px 6px 0}
.hcs-p-plabel{font-size:12px;color:var(--hcs-text2)}
.hcs-p-fix{font-size:13px;color:#b3122e;font-weight:600}
.hcs-p-latest{display:flex;flex-direction:column;gap:10px}

/* ── Step B (CRM on): chips, Next up, timeline tools */
/* The header band: with the Step B buttons the action row goes under the name */
.hcs-d-band2{flex-wrap:wrap}
.hcs-d-band2 .hcs-d-who{flex:1 1 400px}
.hcs-d-band2 .hcs-d-act{flex-basis:100%;justify-content:flex-start;padding-left:72px}
.hcs-d-chiprow{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.hcs-d-chipnow{font-size:12px;font-weight:600;color:var(--hcs-text2)}
.hcs-d-pick{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--hcs-line2);background:#fff;color:var(--hcs-text);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-d-pick:hover{background:#f5f6f8}
.hcs-d-pick.hcs-on{background:var(--soft-fill);border-color:var(--soft-edge);color:var(--on-soft)}
.hcs-d-pick[data-hcs="deal:done"]{border-color:var(--hcs-done);color:#037f4c}
.hcs-d-small{align-self:flex-start;min-height:32px;padding:0 12px;font-size:13px}
.hcs-d-fpill{display:inline-flex;align-items:center;height:20px;margin-left:6px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.hcs-d-fpill-ok{background:#e5f9ef;color:#037f4c}
.hcs-d-fpill-amber{background:#fff4e0;color:#7a4b00}
.hcs-d-fpill-red{background:#fdeef0;color:#b3122e}
.hcs-d-stepunder.hcs-d-stepred{color:#b3122e;font-weight:700;opacity:1}
.hcs-d-nextmini{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.hcs-d-nexttext{font-weight:600;overflow-wrap:anywhere;min-width:0}
.hcs-d-due{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.hcs-d-due-ok{background:var(--seg-track);color:var(--hcs-text2)}
.hcs-d-due-orange{background:#fff4e0;color:#7a4b00}
.hcs-d-due-red{background:#fdeef0;color:#b3122e}
.hcs-d-nonext{padding:6px 10px;border-radius:6px;background:#fff8d6;color:#6b5500;font-size:13px;font-weight:600}
.hcs-d-input{width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-text);font-family:inherit;font-size:14px}
textarea.hcs-d-input{resize:vertical;min-height:72px}
.hcs-d-input:focus{outline:2px solid var(--hcs-green);outline-offset:1px}
.hcs-d-tlbtns{display:flex;flex-wrap:wrap;gap:6px;padding-top:4px}
.hcs-d-tlbtn{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 10px;border:1px solid var(--hcs-line2);border-radius:999px;background:#fff;color:var(--hcs-text);font-family:inherit;font-size:12px;font-weight:600;cursor:pointer}
.hcs-d-tlbtn:hover{background:#f5f6f8}
.hcs-d-copyfail{display:flex;flex-direction:column;gap:8px;padding:10px 14px;border-radius:8px;background:#fff4e0;border:1px solid #f2c47a;color:#7a4b00;font-size:13px}
.hcs-d-copyfail .hcs-btn{align-self:flex-start}
.hcs-d-pinned{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px;border-radius:6px;background:#fffbea;border:1px solid #f5e3a3}
.hcs-d-pinned .hcs-d-notetext{align-self:stretch}

/* Step B on the phone: chips 48px tall, every other tap at least 44px */
@media (max-width:1149px){
  .hcs-d-phead2{flex-wrap:wrap}
  .hcs-d-prounds{flex-basis:100%;padding-top:6px}
  .hcs-d-phead .hcs-d-stagebtn{min-height:44px}
  .hcs-d-pick{min-height:48px;padding:0 14px;font-size:14px}
  .hcs-d-chip{height:auto;min-height:44px}
  .hcs-d-tlbtn{min-height:44px;padding:0 14px}
  .hcs-d-small{min-height:44px}
  .hcs-d-about .hcs-d-link,.hcs-d-copyfail .hcs-btn{min-height:44px}
  .hcs-d-input{min-height:44px;font-size:16px}
}

/* Laptop widths where three columns get tight: timeline moves under the sheet */
@media (max-width:1439px) and (min-width:1150px){
  .hcs-d-cols{grid-template-columns:minmax(0,1fr) minmax(220px,300px)}
  .hcs-d-mid{grid-column:1;grid-row:2}
  .hcs-d-right{grid-column:2;grid-row:1 / span 2}
}

/* ── Phone (under 1150px): header (scrolls away, D5), round buttons, segments, bottom bar */
@media (max-width:1149px){
  .hcs-d-phone{gap:12px;padding-bottom:88px}
  .hcs-d-phead{position:relative;z-index:1;display:flex;align-items:flex-start;gap:8px;margin:-16px -16px 0;padding:8px 16px;background:#fff;border-bottom:1px solid var(--hcs-line)}
  .hcs-d-pwho{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
  .hcs-d-pnameline{display:flex;align-items:center;gap:8px;min-width:0}
  .hcs-d-phone .hcs-d-name{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hcs-d-chevrons{display:flex;gap:3px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .hcs-d-chevrons::-webkit-scrollbar{display:none}
  .hcs-d-chev{flex:none;display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600}
  .hcs-d-seg{display:flex;gap:4px;padding:4px;min-height:44px;border-radius:10px;background:var(--seg-track)}
  .hcs-d-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hcs-d-tile{min-height:84px}
  .hcs-d-tbig{font-size:18px}
  .hcs-d-cardhead{min-height:56px}
  .hcs-d-fact{grid-template-columns:96px minmax(0,1fr)}
  .hcs-d-dup{flex-wrap:wrap}
  .hcs-d-bar{position:fixed;left:0;right:0;bottom:0;z-index:65;display:flex;gap:4px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--hcs-line);box-shadow:0 -4px 16px rgba(23,35,46,.06)}
  .hcs-d-barbtn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;border:0;border-radius:10px;background:none;color:var(--hcs-text);font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;font-family:inherit}
  .hcs-d-barbtn[disabled]{opacity:.45}
  .hcs-d-barbtn.hcs-d-primary{background:var(--brand-fill);color:var(--on-brand)}
  .hcs-d-menu-phone{position:fixed;left:16px;right:16px;top:auto;bottom:calc(76px + env(safe-area-inset-bottom));max-width:none;z-index:66}
  .hcs-d-menuitem{min-height:44px}
  /* The deal's own bar replaces the app's bottom bar while the page is open. */
  body:has(.hcs-d-bar) .view-toggle{display:none}
}

/* sheets.js and quickadd.js (builder 3b) */
/* The Step B sheets sit in the shell's sheet box ([data-sheet=<type>]).
   Chips 36px on a laptop and 48px on the phone; every tap target 44px or
   more on the phone; the main button is last. */
.hcs-sheet-box .hcs-sh-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 4px}
.hcs-sheet-box[data-sheet="snooze"] .sales-sheet-actions .sales-btn{min-width:0;white-space:normal;padding:8px 14px}
.hcs-sheet-box[data-sheet="snooze"] #hcs-sh-snooze-save{flex:2;line-height:1.3}
.hcs-sheet-box[data-sheet="snooze"] #hcs-sh-snooze-preview.hcs-sh-snooze-valid{color:var(--brand-fill)}
.hcs-sh-chip{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--hcs-line2);background:#fff;color:var(--hcs-text);font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background-color var(--hcs-t),border-color var(--hcs-t)}
.hcs-sh-chip:hover{border-color:var(--hcs-green)}
.hcs-sh-chip.hcs-on{background:var(--green-pale);border-color:var(--hcs-green);color:var(--hcs-green)}
.hcs-sh-chip[disabled]{opacity:.5;cursor:default}
.hcs-sh-chip.hcs-on[disabled]{opacity:1}
.hcs-sh-chip.hcs-qa-use{background:#eef4fd;border-color:#b9cff3;color:var(--hcs-navy)}
.hcs-sh-chip.hcs-qa-use.hcs-on{background:var(--hcs-navy);border-color:var(--hcs-navy);color:#fff}
.hcs-sh-input{display:block;width:100%;box-sizing:border-box;min-height:40px;padding:8px 10px;border:1px solid var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-text);font:inherit;font-size:14px}
textarea.hcs-sh-input{resize:vertical}
.hcs-sh-input+.hcs-sh-input{margin-top:8px}
.hcs-sh-tick{display:flex;align-items:center;gap:8px;min-height:40px;margin-top:6px;font-size:14px;color:var(--hcs-text);cursor:pointer}
.hcs-sh-tick input{width:18px;height:18px;margin:0}
.hcs-sh-warn{margin:10px 0;padding:10px 12px;border-radius:8px;background:#fff4e0;border:1px solid #f2c47a;color:var(--hcs-amber-text);font-size:13px;font-weight:600;line-height:1.45}
.hcs-sh-saved{margin:8px 0 0;color:var(--hcs-green);font-weight:700}
.hcs-sh-hint{margin:8px 0 0;color:var(--hcs-red);font-size:13px;font-weight:600}
.hcs-sh-quote{margin:10px 0;padding:10px 12px;border-left:4px solid var(--hcs-line2);border-radius:4px;background:var(--hcs-page);font-size:14px;line-height:1.5;color:var(--hcs-text)}
.hcs-sh-copybox{margin-top:8px;user-select:text;-webkit-user-select:text}
/* Log call or text: the outcome buttons save in one tap. They sit under the
   form; the big ones first, the rarer ones under them, Call and Text apart. */
.hcs-sh-outhead{margin-top:16px}
.hcs-sh-outkind{margin:12px 0 0;font-size:12px;font-weight:700;color:var(--hcs-muted)}
.hcs-sheet-box .hcs-sh-outs{margin-top:8px}
.hcs-sheet-box .hcs-sh-outs .sales-btn{min-width:0;white-space:normal;padding:8px 14px}
.hcs-sheet-box .hcs-sh-outs .sales-btn.hcs-on{box-shadow:0 0 0 3px var(--green-pale)}
/* Not going ahead: its own row, a little apart from the other outcomes. */
.hcs-sheet-box .hcs-sh-outs.hcs-sh-passrow{margin-top:14px}
/* B3: the note box takes several lines (pasted call notes keep theirs);
   Paste notes sits on the row of its label; the plain paste box, when the
   browser will not hand over what was copied, sits under it. */
.hcs-sh-notehead{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;margin-top:8px}
.hcs-sh-notehead .sales-label{margin-top:0}
.hcs-sh-notehead+.hcs-sh-input{margin-top:6px}
textarea.hcs-sh-notebox{min-height:96px;line-height:1.4}
textarea.hcs-sh-notebox[disabled]{background:var(--hcs-page);color:var(--hcs-text2)}
.hcs-sh-pastebox{margin-top:8px;padding:8px 10px;border:1px dashed var(--hcs-line2);border-radius:8px}
#hcs-sh-noteparts:empty{display:none}
/* Move stage: one row per stage, a colored dot, its one-line meaning. */
.hcs-sh-stages{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.hcs-sh-stage{display:flex;align-items:flex-start;gap:10px;width:100%;min-height:48px;padding:8px 12px;border:1px solid var(--hcs-line);border-radius:8px;background:#fff;color:var(--hcs-text);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--hcs-t),background-color var(--hcs-t)}
.hcs-sh-stage:hover{border-color:var(--hcs-line2)}
.hcs-sh-stage.hcs-on{border-color:var(--hcs-green);background:var(--green-wash)}
.hcs-sh-stage[disabled]{cursor:default}
.hcs-sh-stage[disabled]:not(.hcs-on){opacity:.6}
.hcs-sh-stage-dot{flex:none;width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--hcs-line2)}
.hcs-sh-stage-new .hcs-sh-stage-dot{background:var(--hcs-new)}
.hcs-sh-stage-talking .hcs-sh-stage-dot{background:var(--hcs-talking)}
.hcs-sh-stage-quoted .hcs-sh-stage-dot{background:var(--hcs-quoted)}
.hcs-sh-stage-invoiced .hcs-sh-stage-dot{background:var(--hcs-invoiced)}
.hcs-sh-stage-booked .hcs-sh-stage-dot{background:var(--hcs-booked)}
.hcs-sh-stage-delivered .hcs-sh-stage-dot{background:var(--hcs-delivered)}
.hcs-sh-stage-passed .hcs-sh-stage-dot{background:var(--hcs-passed)}
.hcs-sh-stage-text{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:14px}
.hcs-sh-stage-text .hcs-ic{color:var(--hcs-muted)}
.hcs-sh-stage-meaning{flex-basis:100%;font-size:12px;color:var(--hcs-text2)}
.hcs-sh-now{font-size:11px;font-weight:700;color:var(--hcs-green);text-transform:uppercase;letter-spacing:.4px}
/* Add to deal: the search results. */
.hcs-sh-results{display:flex;flex-direction:column;gap:6px;margin-top:8px;max-height:320px;overflow:auto}
.hcs-sh-pick{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--hcs-line);border-radius:8px;background:#fff;color:var(--hcs-text);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.hcs-sh-pick:hover{border-color:var(--hcs-green)}
.hcs-sh-pick span{font-size:12px;color:var(--hcs-text2)}
/* Quick add: the match card, the day's load pill, the footer. */
.hcs-qa-match{margin:10px 0;padding:10px 12px;border-radius:8px;background:#fff4e0;border:1px solid #f2c47a}
.hcs-qa-match-head{font-size:14px;font-weight:700;color:var(--hcs-text)}
.hcs-qa-match-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hcs-qa-load{display:inline-flex;align-items:center;height:24px;margin-top:6px;padding:0 10px;border-radius:999px;background:var(--green-pale);color:var(--hcs-green);font-size:12px;font-weight:600}
/* The footer carries its own bottom padding (and the safe area): no strip of form below it. */
.hcs-sheet-box[data-sheet="quickadd"]{padding-bottom:0}
.hcs-sheet-box[data-sheet="quickadd"] .hcs-qa-foot{position:sticky;bottom:0;z-index:1;margin:16px -4px 0;padding:10px 4px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--hcs-line)}
.hcs-toast-undo.hcs-qa-open{font-weight:700}
@media (max-width:1149px){
  .hcs-sh-chip{min-height:48px;padding:0 16px;font-size:14px}
  .hcs-sh-input{min-height:44px;font-size:16px}
  .hcs-sh-tick{min-height:44px}
  .hcs-sh-tick input{width:22px;height:22px}
  .hcs-sh-stage{min-height:52px}
  .hcs-sh-pick{min-height:48px}
  .hcs-qa-match-btns .sales-btn{flex:1 1 auto}
}
/* Step C: a robot row on the timeline (lightning mark, robot name, Undo). */
.hcs-d-tlbot .hcs-d-tlicon{box-shadow:0 0 0 2px #fff4e0}

/* ── Activity (ACTIVITY-DESIGN 2026-09-30, CRM on): one color family per
   kind of row (the STYLE-GUIDE tint pairs, background and glyph), so the
   eye learns it once. Color is never alone: the words and the glyph say the
   type too. Red is never on a row. Conversations are cards, changes are
   quiet lines. Phone sizes (44px taps) are in the block under it. */
.hcs-d-activity{display:flex;flex-direction:column;gap:10px;min-width:0}
.hcs-d-ahead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hcs-d-ahead h3{font-size:16px;font-weight:700}
.hcs-d-aheadlinks{display:inline-flex;gap:12px;margin-left:auto}
.hcs-d-asearch{position:relative;flex:1 1 200px;display:flex;align-items:center;gap:6px;height:36px;padding:0 4px 0 10px;border:1px solid var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-muted);min-width:200px}
.hcs-d-asearch:focus-within{outline:2px solid var(--hcs-green);outline-offset:1px}
.hcs-d-asinput{flex:1;min-width:0;height:100%;border:0;background:none;color:var(--hcs-text);font-family:inherit;font-size:14px;outline:0}
.hcs-d-asinput::-webkit-search-cancel-button{display:none}
.hcs-d-aclear[hidden]{display:none}
.hcs-d-asum{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--hcs-text2)}
.hcs-d-asum span{display:inline-flex;align-items:center;gap:4px}
.hcs-d-asum span.hcs-d-asumlast{display:inline}
.hcs-d-asum b{color:var(--hcs-text);font-weight:600}
/* Upcoming: pinned, first, never filtered away */
.hcs-d-aup{display:flex;flex-direction:column;gap:8px;padding:12px 14px;background:#fff;border:1px solid var(--hcs-line);border-left:4px solid var(--brand-fill);border-radius:8px}
.hcs-d-aup-overdue{border-left-color:#df2f4a}
.hcs-d-aup-none{border-left-color:#ffcb00}
.hcs-d-auphead{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hcs-text2)}
.hcs-d-auphead span{display:inline-flex;align-items:center;gap:6px}
.hcs-d-auphead span+span{font-weight:500;letter-spacing:0;text-transform:none;color:var(--hcs-muted)}
.hcs-d-aupline{display:flex;align-items:flex-start;gap:8px}
.hcs-d-auptext{flex:1;min-width:0;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.hcs-d-aupnone{font-weight:500;color:var(--hcs-text2)}
.hcs-d-aupsub{font-size:12px;color:var(--hcs-text2)}
.hcs-d-aupill{flex:none;display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.hcs-d-aupill-overdue{background:#df2f4a;color:#fff}
.hcs-d-aupill-today{background:#00c875;color:#1f3025}
.hcs-d-aupill-later{background:#e6e9ef;color:#323338}
.hcs-d-aupill-none{background:#ffcb00;color:#323338}
.hcs-d-aupbtns{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hcs-d-aupbtns .hcs-btn{min-height:36px}
.hcs-d-auphint{font-size:12px;color:var(--hcs-muted)}
/* The quick log row: Log call, Log text, Add note */
.hcs-d-aqlogs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hcs-d-aqlog{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 10px;border:1px solid var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-text);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color var(--hcs-t)}
.hcs-d-aqlog:hover{background:#f5f6f8}
.hcs-d-aqlog .hcs-ic{box-sizing:content-box;padding:4px;border-radius:50%}
.hcs-d-aql-call .hcs-ic{background:#e5f6ee;color:#0e5c3f}
.hcs-d-aql-text .hcs-ic{background:#fff0e5;color:#a44f10}
.hcs-d-aql-note .hcs-ic{background:#fff4e0;color:#9a5b00}
/* The 6 chips (each row counts once, so All = the sum) */
.hcs-d-achips{display:flex;flex-wrap:wrap;gap:6px}
.hcs-d-achip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid var(--hcs-line2);font-family:inherit;font-size:13px;font-weight:600;color:var(--hcs-text);cursor:pointer;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-d-achip:hover{background:#f5f6f8}
.hcs-d-acount{color:var(--hcs-muted);font-weight:600}
.hcs-d-achip.hcs-on{background:var(--brand-fill);border-color:var(--brand-fill);color:var(--on-brand)}
.hcs-d-achip.hcs-on .hcs-d-acount{color:var(--on-brand)}
.hcs-d-azero:not(.hcs-on){opacity:.55}
.hcs-d-adot{width:8px;height:8px;border-radius:50%;background:var(--hcs-text2)}
.hcs-d-achip-emails .hcs-d-adot{background:#1f4f99}.hcs-d-achip-calls .hcs-d-adot{background:#0e5c3f}
.hcs-d-achip-texts .hcs-d-adot{background:#a44f10}.hcs-d-achip-notes .hcs-d-adot{background:#9a5b00}
.hcs-d-abody{display:flex;flex-direction:column;gap:12px;min-width:0}
.hcs-d-arobot,.hcs-d-anoteline{font-size:13px;color:var(--hcs-text2)}
.hcs-d-aerror{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border-radius:8px;background:#fff4e0;border:1px solid #f2c47a;color:#7a4b00;font-size:13px;font-weight:600}
.hcs-d-aempty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px dashed var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-text2);font-size:13px}
.hcs-d-aolder{align-self:center;min-height:36px}
.hcs-d-afoot{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--hcs-muted)}
/* Today (green), This week (blue), Earlier (gray): a 4px bar and a title */
.hcs-d-agroup{display:flex;flex-direction:column;gap:8px}
.hcs-d-aghead{display:flex;align-items:center;gap:8px;padding-left:8px;border-left:4px solid #c4c4c4}
.hcs-d-ag-today .hcs-d-aghead{border-left-color:#00c875}
.hcs-d-ag-week .hcs-d-aghead{border-left-color:#216edf}
.hcs-d-aghead h4{margin:0;font-size:16px;font-weight:700}
.hcs-d-agcount{font-size:13px;color:var(--hcs-muted)}
.hcs-d-agsub{margin-left:auto;font-size:12px;color:var(--hcs-muted)}
.hcs-d-amonth{padding-top:4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--hcs-muted)}
/* The type circle (36px, 28px on a quiet line) and its in or out arrow */
.hcs-d-acirc{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%}
.hcs-d-acircsm{width:28px;height:28px}
.hcs-d-adir{position:absolute;right:-3px;bottom:-3px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 0 0 1px var(--hcs-line)}
.hcs-d-at-email{background:#e6f0ff;color:#1f4f99}.hcs-d-at-form{background:#e0f7f6;color:#11706b}
.hcs-d-at-call{background:#e5f6ee;color:#0e5c3f}.hcs-d-at-text{background:#fff0e5;color:#a44f10}
.hcs-d-at-dm{background:#fde8f1;color:#a3195b}.hcs-d-at-note{background:#fff4e0;color:#9a5b00}
.hcs-d-at-quote{background:#f0e9ff;color:#5b2ea6}.hcs-d-at-change{background:var(--hcs-page);color:var(--hcs-text2)}
/* A conversation card */
.hcs-d-acard{display:flex;gap:10px;min-height:44px;padding:12px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px;box-sizing:border-box}
.hcs-d-ac-note{background:#fffaf0;border-color:#f5e3a3}
.hcs-d-amain{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.hcs-d-ahit{display:flex;flex-direction:column;gap:2px;width:100%;padding:0;border:0;background:none;text-align:left;color:var(--hcs-text);font-family:inherit;cursor:pointer}
.hcs-d-aline1{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0}
.hcs-d-alabel{font-size:14px;font-weight:700;color:var(--hcs-text)}
.hcs-d-ashort{display:none}
.hcs-d-awho{min-width:0;font-size:14px;color:var(--hcs-text2);overflow-wrap:anywhere}
/* D7: on a laptop the time stays on line 1; a long who wraps in its own box. */
@media (min-width:1150px){.hcs-d-aline1{flex-wrap:nowrap}.hcs-d-awho{flex:1 1 auto;min-width:0}}
.hcs-d-atime{margin-left:auto;flex:none;font-size:12px;font-weight:500;color:var(--hcs-muted);white-space:nowrap}
.hcs-d-aline2{display:block;font-size:14px;color:var(--hcs-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcs-d-amuted{color:var(--hcs-text2);font-style:italic}
.hcs-d-anote{white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.hcs-d-acard.hcs-on .hcs-d-aline2{display:block;white-space:pre-wrap;overflow:visible;overflow-wrap:anywhere;-webkit-line-clamp:unset}
.hcs-d-atags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hcs-d-atag{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 6px;border-radius:4px;background:var(--hcs-page);color:var(--hcs-text2);font-size:12px;font-weight:500;white-space:nowrap}
.hcs-d-atag-robot .hcs-ic{color:#b86e00}
.hcs-d-atag-messages{background:#e6f0ff;color:#1f4f99;font-weight:600}
.hcs-d-atag-short{display:none}
.hcs-d-aacts{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.hcs-btn.hcs-d-abtn{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;font-size:13px;text-decoration:none}
.hcs-d-amore{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;min-height:36px;padding:0;border:1px solid var(--hcs-line2);border-radius:8px;background:#fff;color:var(--hcs-text);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer}
.hcs-d-amore:hover,.hcs-d-amore[aria-expanded="true"]{background:#f5f6f8}
.hcs-d-achev{margin-left:auto;display:inline-flex;color:var(--hcs-muted)}
/* Opened: exact time, who logged it, the thread's messages */
.hcs-d-aexp{display:flex;flex-direction:column;gap:6px;padding-top:6px;border-top:1px solid var(--hcs-line)}
.hcs-d-afact{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--hcs-text2);overflow-wrap:anywhere}
.hcs-d-afact .hcs-ic,.hcs-d-amenunote .hcs-ic,.hcs-d-aqbot .hcs-ic{flex:none;color:#b86e00}
.hcs-d-amsgs{display:flex;flex-direction:column;border:1px solid var(--hcs-line);border-radius:8px;background:var(--green-wash);overflow:hidden}
.hcs-d-amsghead{padding:6px 10px;font-size:12px;color:var(--hcs-text2)}
.hcs-d-amsg{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 6px 4px 10px;border-top:1px solid var(--hcs-line);background:#fff;box-sizing:border-box}
.hcs-d-amsghit{background:#fff8d6}
.hcs-d-amsgdir{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%}
.hcs-d-amsgbody{flex:1;min-width:0;display:flex;flex-direction:column}
.hcs-d-amsgwho{font-size:13px;font-weight:700;overflow-wrap:anywhere}
.hcs-d-amsgsub,.hcs-d-amsgsubj{font-size:12px;color:var(--hcs-text2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hcs-iconbtn.hcs-d-amsgbtn{flex:none;width:44px;height:44px;color:var(--hcs-green)}
.hcs-d-amsg .hcs-d-amore{border-color:transparent}
.hcs-d-amsgall{align-self:flex-start;min-height:36px;padding:0 10px}
/* "...": the row's buttons, with who logged it on top */
.hcs-d-amenu{flex-basis:100%;display:flex;flex-direction:column;gap:6px;margin-top:4px;padding:8px;background:#fff;border:1px solid var(--hcs-line);border-radius:8px;box-shadow:0 8px 24px rgba(23,35,46,.12)}
.hcs-d-amenunote{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--hcs-text2)}
.hcs-d-amenu .hcs-d-tlbtns{flex-direction:column;align-items:stretch;padding-top:0}
.hcs-d-amenu .hcs-d-tlbtn{justify-content:flex-start;min-height:36px;border-radius:6px}
/* A change: a quiet line, no card */
.hcs-d-aquiet{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:36px;padding:2px 12px;font-size:13px}
.hcs-d-aqline{flex:1;min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.hcs-d-aquiet .hcs-d-alabel{font-size:13px}
.hcs-d-aqbot{display:inline-flex}
.hcs-d-aqtext{color:var(--hcs-text2);overflow-wrap:anywhere}
.hcs-d-aquiet .hcs-d-atime{margin-left:0}
.hcs-d-aquiet .hcs-d-amore{border-color:transparent;background:none}
.hcs-d-aquiet .hcs-d-amore:hover{background:#f5f6f8}
/* Loading: 3 gray cards, no spinner */
.hcs-d-askels{display:flex;flex-direction:column;gap:8px}
.hcs-d-askel{min-height:76px}
.hcs-d-askelc{background:#eef1f4}
.hcs-d-askelbar{display:block;height:12px;width:60%;border-radius:6px;background:#eef1f4}
.hcs-d-askelbar2{width:85%}
/* The page grid with Activity: it starts right under the header band, so
   the first card shows without scrolling. 1440px and wider: 3 columns, left
   = stage bar, tiles (2 by 2) and Event sheet, middle = Activity, right =
   People and the rest. 1150 to 1439px: 2 columns, People and the rest go
   under the Event sheet. The last row takes the overflow of the tall
   columns, so the shorter ones never get gaps. */
.hcs-d-cols.hcs-d-colsact{grid-template-columns:minmax(300px,360px) minmax(440px,1fr) minmax(220px,280px);grid-template-rows:auto auto 1fr;
  grid-template-areas:"top mid right" "tiles mid right" "left mid right"}
.hcs-d-colsact>.hcs-d-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.hcs-d-gtop{grid-area:top;display:flex;flex-direction:column;gap:16px;min-width:0}
/* In the narrow left column (both laptop grids) the 6 stage steps sit 3
   and 3 (Sidd 2026-10-07: Invoice sent is a step of its own). */
@media (min-width:1150px){
  .hcs-d-gtop .hcs-d-steps{flex-wrap:wrap}
  .hcs-d-gtop .hcs-d-step{flex:1 1 30%}
}
.hcs-d-colsact>.hcs-d-tiles{grid-area:tiles}
.hcs-d-colsact>.hcs-d-left{grid-area:left}
.hcs-d-colsact>.hcs-d-mid{grid-area:mid}
.hcs-d-colsact>.hcs-d-right{grid-area:right}
@media (max-width:1439px) and (min-width:1150px){
  /* U03: the left column reads What they wrote (in top), the tiles, People,
     the Event sheet, then Customer, Venue, Other deals and Files. */
  .hcs-d-cols.hcs-d-colsact{grid-template-columns:minmax(0,1fr) minmax(440px,560px);grid-template-rows:auto auto auto auto 1fr;
    grid-template-areas:"top mid" "tiles mid" "people mid" "left mid" "right mid"}
  .hcs-d-colsact>.hcs-d-right{display:contents}
  .hcs-d-colsact .hcs-d-rpeople{grid-area:people}
  .hcs-d-colsact .hcs-d-rrest{grid-area:right}
}
/* Phone: cards radius 12, chips in one sideways row, every tap 44px */
@media (max-width:1149px){
  .hcs-d-aphone .hcs-d-acard{border-radius:12px}
  .hcs-d-aphone .hcs-d-acirc{width:32px;height:32px}
  .hcs-d-aphone .hcs-d-acircsm{width:28px;height:28px}
  .hcs-d-aphone .hcs-d-awho{order:3;flex-basis:100%}
  .hcs-d-ahit{min-height:44px}
  .hcs-d-aqlog{min-height:44px;padding:0 6px}
  .hcs-d-achips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
  .hcs-d-achips::-webkit-scrollbar{display:none}
  .hcs-d-achip{flex:none;height:auto;min-height:44px;padding:0 14px;font-size:14px}
  .hcs-d-achipfind{min-width:44px;justify-content:center;padding:0}
  .hcs-d-asearch{height:44px;min-width:0}
  .hcs-d-asinput{font-size:16px}
  .hcs-d-aclear{width:44px;height:44px}
  .hcs-d-aupbtns .hcs-btn{flex:1 1 0;justify-content:center;min-height:44px}
  .hcs-d-auphint{flex-basis:100%}
  .hcs-btn.hcs-d-abtn{min-height:44px}
  .hcs-d-amore{min-width:44px;min-height:44px}
  .hcs-d-afull{flex:1 1 0;justify-content:center}
  .hcs-d-aactsfull{display:flex;margin-left:0}
  .hcs-d-amenu .hcs-d-tlbtn{min-height:44px}
  .hcs-d-amsgall,.hcs-d-aolder{min-height:44px}
  .hcs-d-aquiet{align-items:flex-start;min-height:44px;padding:0 4px 0 8px}
  .hcs-d-aquiet .hcs-d-atime{padding-top:12px}
  .hcs-d-aquiet .hcs-d-aqline{padding-top:10px}
  .hcs-d-aquiet .hcs-d-acircsm{margin-top:8px}
}
/* Under 360px wide: the short type words ("Text in, Google Voice") */
@media (max-width:359px){
  .hcs-d-along{display:none}
  .hcs-d-ashort{display:inline}
  .hcs-d-atag-short{display:inline-flex}
}
/* ── U01: the contact line (the phone and email as text, copy first on a
   laptop, small Call and Text icons), the People rows, + Add phone and
   + Add email (U04), the No number yet line and the phone's number sheet. */
.hcs-d-contact{display:flex;flex-wrap:wrap;align-items:center;gap:2px 16px;font-size:14px;color:var(--hcs-text)}
.hcs-d-citem{display:inline-flex;align-items:center;gap:4px;min-width:0;color:var(--hcs-text2)}
.hcs-d-cval{color:var(--hcs-text);font-weight:600;cursor:pointer;user-select:text;-webkit-user-select:text;overflow-wrap:anywhere}
.hcs-d-citem .hcs-d-cval:hover{text-decoration:underline}
.hcs-d-cicon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:none;color:var(--hcs-text2);cursor:pointer;text-decoration:none;font-family:inherit;transition:background-color var(--hcs-t),color var(--hcs-t)}
.hcs-d-cicon:hover{background:var(--hcs-page);color:var(--hcs-text)}
.hcs-d-cnone{font-size:13px;color:var(--hcs-muted)}
.hcs-d-cadd{font-size:14px}
.hcs-d-ctap{display:inline-flex;align-items:center;gap:6px;min-width:0;min-height:44px;padding:0;border:0;background:none;font-family:inherit;font-size:15px;text-align:left;text-decoration:none;color:var(--hcs-text)}
.hcs-d-ctap .hcs-ic{flex:none;color:var(--hcs-text2)}
.hcs-d-sel{user-select:text;-webkit-user-select:text}
.hcs-d-padds{display:flex;flex-wrap:wrap;gap:4px 16px;padding-top:6px;border-top:1px solid var(--hcs-line)}
.hcs-d-map{align-self:flex-start}
.hcs-d-nonum{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;font-weight:600;color:var(--hcs-red)}
.hcs-sh-rows{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.hcs-sh-row{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;min-height:44px;padding:0 14px;border:1px solid var(--hcs-line);border-radius:8px;background:var(--hcs-card);color:var(--hcs-text);font-family:inherit;font-size:15px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer;transition:border-color var(--hcs-t)}
.hcs-sh-row:hover{border-color:var(--hcs-green)}
.hcs-sh-row .hcs-ic{flex:none;color:var(--hcs-green)}
@media (max-width:1149px){
  .hcs-d-phead .hcs-d-contact{gap:0 16px}
  .hcs-d-picons .hcs-iconbtn,.hcs-d-padds .hcs-d-link{min-width:44px;min-height:44px}
  .hcs-sh-row{min-height:48px}
}
/* ── U05: What they wrote (the client's own message at the top while
   selling, 4 lines then Show all) and the one gray prep line of an open
   lead. U03: the same message on the first email or form card, the People
   and the rest of the side in two parts. */
.hcs-d-rpeople,.hcs-d-rrest{display:flex;flex-direction:column;gap:12px;min-width:0}
.hcs-d-wrote{display:flex;flex-direction:column;gap:8px;padding:12px 16px;border-left:4px solid var(--hcs-new)}
.hcs-d-wrotehead{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.hcs-d-wrotehead h3{font-size:15px;font-weight:700}
.hcs-d-wrotebody{display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.45}
.hcs-d-wrotebody .hcs-d-notetext{font-size:14px}
.hcs-d-wrotepin{display:flex;align-items:flex-start;gap:6px;color:var(--hcs-text2)}
.hcs-d-wrotepin .hcs-ic{flex:none;margin-top:3px}
.hcs-d-clamp{max-height:5.8em;overflow:hidden}
.hcs-d-wrotebtns{display:flex;flex-wrap:wrap;gap:4px 16px}
.hcs-d-prepline{padding:8px 12px;border:1px dashed var(--hcs-line2);border-radius:8px;font-size:13px}
.hcs-d-aorder{display:flex;flex-direction:column;gap:2px;margin-top:4px;padding:6px 8px;border-radius:6px;background:var(--hcs-page);text-align:left}
.hcs-d-aorderk{font-size:11px;font-weight:700;color:var(--hcs-text2)}
.hcs-d-aordert{font-size:13px;line-height:1.45;color:var(--hcs-text);white-space:pre-wrap;overflow-wrap:anywhere}
.hcs-d-aordert.hcs-d-clamp{max-height:5.8em}
.hcs-d-aordermore{font-size:12px;font-weight:600;color:var(--hcs-green)}
@media (max-width:1149px){
  .hcs-d-wrotebtns .hcs-d-link{min-height:44px}
}
/* ── U08: "Reached <name>?" right after a reach tap (laptop: under the deal
   header, on the Work through card and on that Today row), and the slim
   "You called <name> at 2:04pm" bar for an older tap (Today and the deal). */
.hcs-d-reach,.hcs-w-reachbar{margin:8px 0}
.hcs-reachbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:6px;padding:8px 10px;border:1px solid var(--hcs-green);border-radius:8px;background:var(--green-wash,#f4f6f2)}
.hcs-reachbar-q{font-size:14px;font-weight:700;color:var(--hcs-text);margin-right:4px}
.hcs-reachbar .hcs-reachbar-later{border-style:dashed;color:var(--hcs-text2)}
.hcs-reachlate{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:8px 0;padding:6px 10px;border-left:4px solid var(--hcs-amber-line);border-radius:6px;background:#fff4e0;color:#7a4b00;font-size:13px}
.hcs-reachlate-text{flex:1 1 220px;min-width:0;font-weight:600}
.hcs-reachlate .hcs-ic{flex:none}
@media (max-width:1149px){
  .hcs-reachlate .hcs-btn,.hcs-reachlate .hcs-y-link{min-height:44px}
}
/* U09: the open step above its Done tick in Log call or text. */
.hcs-sh-oldstep{margin-top:10px;font-size:13px;font-weight:600;color:var(--hcs-text)}
/* U10: Jarvis would invoice the client's older open lead (one amber line). */
.hcs-d-older{margin:8px 0}
/* Received and sent words stay plain text, wrap long lines, and start at 12
   lines (core.js MAIL_CLAMP_LINES decides when Show all appears; a hidden
   Show all waits for core.js HCS.mailClampCheck after paint). */
.hcs-d-mailreader{margin:12px 0;padding:12px;background:var(--hcs-page);border-radius:10px;min-width:0}
.hcs-d-mailtext{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.5;font-size:14px}
.hcs-d-mailclamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:12;line-clamp:12;overflow:hidden}
.hcs-d-mailreader>.hcs-d-link{margin:8px 12px 0 0}
.hcs-d-mailreader>.hcs-d-link[hidden]{display:none}
.hcs-d-mailquoted{margin-top:10px;padding-left:12px;border-left:2px solid var(--hcs-line2);color:var(--hcs-text2)}
.hcs-d-mailactions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}
.hcs-d-mailbar{display:block;height:5px;width:60%;background:var(--hcs-line2);border-radius:4px;margin-bottom:8px}
/* Migration 063: the signed delivery inside Crew and day-of. The photo fits
   the card, the signature sits on white like the phone pad it came from. */
.hcs-d-proof{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid var(--hcs-line);font-size:13px}
.hcs-d-proof h4{margin:0;font-size:13px;font-weight:700;color:var(--hcs-text)}
.hcs-d-proof p,.hcs-d-proof ul{margin:0}
.hcs-d-proof ul{padding-left:18px}
.hcs-d-proofphoto{display:block;max-width:100%;max-height:420px;height:auto;object-fit:contain;border-radius:8px;border:1px solid var(--hcs-line)}
.hcs-d-proofsig{display:block;max-width:100%;height:auto;background:#fff;border:1px solid var(--hcs-line);border-radius:6px}
.hcs-d-proof .hcs-d-link{align-self:flex-start}
