/* ═══ PROFILE AND PEOPLE (Ren 2026-10-30, draft canvas "Profile and people").
   A person's profile looks the same wherever it opens: who they are and
   whether they are verified at the top, 3 numbers, About / Reviews / Work
   tabs, Message + Hire pinned at the bottom, Report / Block as small text.
   Markup: #profileViewOverlay in webApps.html, the client card, report sheet
   and blocked view in people.js, provider list rows in renderProfessionals.
   Colours come from the --ag-* tokens in agreements.css. ═══ */

/* ── Profile pop-up shell ── */
#profileViewOverlay .modal-container.ccpv {
  max-width: 440px !important; width: 94% !important; max-height: 92vh; height: 760px;
  border-radius: 24px !important; overflow: hidden; padding: 0; border: 0;
  display: flex; flex-direction: column; background: var(--ag-page);
  font-family: 'Inter', system-ui, sans-serif; color: var(--ag-ink);
}
.ccpv svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccpv-top { height: 60px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.ccpv-top b { font-size: 16px; font-weight: 800; }
.ccpv-top-sp { width: 44px; }
.ccpv-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ag-card); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ccpv-x svg { width: 20px; height: 20px; }
.ccpv-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 6px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; overscroll-behavior: contain; }
.ccpv-scroll::-webkit-scrollbar { display: none; }

/* ── Hero ── */
.ccpv-hero { background: var(--ag-card); border-radius: 22px; padding: 18px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex-shrink: 0; }
.ccpv-av-wrap { position: relative; }
#profileViewOverlay .pv-avatar-lg.ccpv-av {
  width: 84px; height: 84px; border-radius: 50%; border: 0; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--ag-green-bg); background-image: none; color: var(--ag-green-ink);
}
#profileViewOverlay .ccpv-av[data-tone="1"] { background-color: var(--ag-pink-bg); color: var(--ag-pink-ink); }
#profileViewOverlay .ccpv-av[data-tone="2"] { background-color: var(--ag-blue-bg); color: var(--ag-blue-ink); }
#profileViewOverlay .ccpv-av[data-tone="3"] { background-color: var(--ag-purple-bg); color: var(--ag-purple); }
#profileViewOverlay .ccpv-av[data-tone="4"] { background-color: var(--ag-orange-bg); color: var(--ag-orange-ink); }
#profileViewOverlay .ccpv-av[data-tone="5"] { background-color: var(--ag-teal-bg); color: var(--ag-teal-ink); }
.ccpv-dot { display: none; position: absolute; right: 4px; bottom: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ag-green); border: 3px solid var(--ag-card); }
.ccpv.is-on .ccpv-dot { display: block; }
.ccpv.is-blocked .ccpv-dot { display: none; }
#profileViewOverlay .ccpv .pv-name { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--ag-ink); line-height: 1.2; overflow-wrap: anywhere; }
#profileViewOverlay .ccpv .pv-skill { margin: 0; font-size: 14px; color: var(--ag-muted); }
.ccpv-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ccpv-badges:not(:has(.ccpv-badge:not([style*="none"]):not([hidden]))) { display: none; }
.ccpv-badge { align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.ccpv-badge:not([style*="none"]):not([hidden]) { display: inline-flex !important; }
.ccpv-badge svg { width: 13px; height: 13px; stroke-width: 2.8; }
.ccpv-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ccpv-badge.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccpv-badge.green { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ccpv-badge.orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.ccpv-stats { align-self: stretch; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.ccpv-stat { border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ccpv-stat b { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ccpv-stat small { font-size: 11px; font-weight: 700; color: var(--ag-muted); white-space: nowrap; }
.ccpv-stat.orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.ccpv-stat.green { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ccpv-stat.teal { background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
.ccpv-star { width: 15px; height: 15px; fill: #e08a12 !important; stroke: none !important; flex-shrink: 0; }
.ccpv-stat.is-empty .ccpv-star { display: none; }

/* ── Tabs (pills) and panels ── */
#profileViewOverlay .pv-tabs.ccpv-tabs { display: flex; gap: 8px; border: 0; background: transparent; flex-shrink: 0; }
#profileViewOverlay .ccpv-tabs .provider-view-tab-btn {
  flex: 1; height: 40px; padding: 0 6px; border: 0; border-radius: 999px; background: var(--ag-card);
  color: var(--ag-text); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px; transition: none;
}
#profileViewOverlay .ccpv-tabs .provider-view-tab-btn:hover { background: var(--ag-card); color: var(--ag-ink); }
#profileViewOverlay .ccpv-tabs .provider-view-tab-btn.active { font-weight: 800; box-shadow: inset 0 0 0 2px currentColor; }
#profileViewOverlay .ccpv-tabs [data-pvtab="pvOverview"].active { background: var(--ag-green-bg); color: var(--ag-green-ink); }
#profileViewOverlay .ccpv-tabs [data-pvtab="pvReviews"].active { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
#profileViewOverlay .ccpv-tabs [data-pvtab="pvPortfolio"].active { background: var(--ag-purple-bg); color: var(--ag-purple); }
#ccpvRevCount:not(:empty) { font-weight: 800; }
#profileViewOverlay .ccpv .provider-view-tab-panel { height: auto !important; overflow: visible; display: none; flex-direction: column; gap: 10px; }
#profileViewOverlay .ccpv .provider-view-tab-panel.active { display: flex; }
.ccpv-card { background: var(--ag-card); border-radius: 20px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ccpv-card[hidden] { display: none; }
.ccpv-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ccpv-h b { font-size: 15px; font-weight: 800; }
.ccpv-h span { font-size: 12px; color: var(--ag-label); }
#profileViewOverlay .ccpv .pv-about-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ag-text); white-space: pre-line; }
#profileViewOverlay .ccpv .pv-about-text.is-empty { color: var(--ag-label); font-style: italic; }
#profileViewOverlay .ccpv .pv-skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#profileViewOverlay .ccpv .pv-skill-tags:empty { display: none; }
#profileViewOverlay .ccpv .provider-skill-tag { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ag-soft); color: var(--ag-text); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }

/* About rows */
.ccpv-rows { padding: 2px 16px; gap: 0; }
.ccpv-rows:not(:has(.ccpv-row:not([hidden]))) { display: none; }
.ccpv-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ag-line); min-width: 0; }
.ccpv-row[hidden] { display: none; }
.ccpv-rows .ccpv-row:not([hidden]) ~ .ccpv-row { border-top: 1px solid var(--ag-line); }
.ccpv-rows > .ccpv-row:not([hidden]):first-of-type, .ccpv-rows .ccpv-row.is-first { border-top: 0; }
.ccpv-ic { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ccpv-ic svg { width: 16px; height: 16px; }
.ccpv-ic.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccpv-ic.green { background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ccpv-ic.teal { background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
.ccpv-ic.purple { background: var(--ag-purple-bg); color: var(--ag-purple); }
.ccpv-k { font-size: 13px; color: var(--ag-label); flex-shrink: 0; }
.ccpv-row b { flex: 1; min-width: 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--ag-ink); overflow-wrap: anywhere; }

/* Reviews */
.ccpv-revsum { flex-direction: row; align-items: center; gap: 16px; }
.ccpv-rs-big { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ccpv-rs-big b { font-size: 38px; font-weight: 800; letter-spacing: -1px; color: var(--ag-orange-ink); line-height: 1; }
.ccpv-rs-big span { font-size: 12px; color: var(--ag-muted); }
.ccpv-rs-big .ccpv-rs-stars { display: flex; gap: 2px; color: #e08a12; }
.ccpv-rs-stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ccpv-rs-stars svg.off { fill: var(--ag-track); }
.ccpv-rs-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ccpv-rs-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ag-label); }
.ccpv-rs-bar em { font-style: normal; width: 10px; font-weight: 700; color: var(--ag-muted); }
.ccpv-rs-bar i { flex: 1; height: 8px; border-radius: 8px; background: var(--ag-soft); overflow: hidden; display: flex; }
.ccpv-rs-bar i u { display: block; background: #e08a12; border-radius: 8px; }
.ccpv-rs-bar span { width: 20px; text-align: right; }
#profileViewOverlay .ccpv .pv-reviews-list { display: flex; flex-direction: column; gap: 10px; padding: 0; }
#profileViewOverlay .ccpv .provider-review-card { background: var(--ag-card); border: 0; border-radius: 20px; padding: 14px 16px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
#profileViewOverlay .ccpv .provider-review-top { display: flex; align-items: center; gap: 10px; margin: 0; }
.ccpv-rav { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0; background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccpv-rav[data-tone="1"] { background: var(--ag-purple-bg); color: var(--ag-purple); }
.ccpv-rav[data-tone="2"] { background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
.ccpv-rav[data-tone="3"] { background: var(--ag-pink-bg); color: var(--ag-pink-ink); }
.ccpv-rav[data-tone="4"] { background: var(--ag-green-bg); color: var(--ag-green-ink); }
#profileViewOverlay .ccpv .provider-review-author { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; color: var(--ag-ink); }
#profileViewOverlay .ccpv .provider-review-stars { height: 26px; padding: 0 9px; border-radius: 999px; background: var(--ag-orange-bg); color: #e08a12; font-size: 12px; letter-spacing: 1px; display: inline-flex; align-items: center; flex-shrink: 0; }
#profileViewOverlay .ccpv .provider-review-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ag-text); }
#profileViewOverlay .ccpv .provider-review-date { margin: 0; font-size: 12px; color: var(--ag-label); }
#profileViewOverlay .ccpv #pvReviewsList > div:not(.provider-review-card) { background: var(--ag-card); border-radius: 20px; }

/* Work: past work list + verified documents */
#profileViewOverlay .ccpv .pv-portfolio-grid { display: flex; flex-direction: column; gap: 8px; padding: 0; }
#profileViewOverlay .ccpv .pv-portfolio-grid .provider-portfolio-item { border-radius: 14px !important; }
#profileViewOverlay .ccpv .pv-cred-grid { display: flex; flex-direction: column; gap: 0; padding: 0; }
#profileViewOverlay .ccpv .provider-credential-card { background: transparent; border: 0; border-top: 1px solid var(--ag-line); border-radius: 0; padding: 10px 0; display: flex; align-items: center; gap: 12px; }
#profileViewOverlay .ccpv .provider-credential-card:first-child { border-top: 0; }
#profileViewOverlay .ccpv .provider-credential-icon {
  width: 36px; height: 36px; border-radius: 12px; font-size: 0; background: var(--ag-blue-bg); position: relative;
}
#profileViewOverlay .ccpv .provider-credential-icon::after {
  content: ''; position: absolute; inset: 9px; background: var(--ag-blue-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E") center / contain no-repeat;
}
#profileViewOverlay .ccpv .provider-credential-info { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 1px; }
#profileViewOverlay .ccpv .provider-credential-name { margin: 0; flex: 1 1 60%; font-size: 14px; font-weight: 700; color: var(--ag-ink); }
#profileViewOverlay .ccpv .provider-credential-detail { margin: 0; order: 3; flex-basis: 100%; font-size: 12px; color: var(--ag-label); }
#profileViewOverlay .ccpv .provider-credential-verified { margin: 0; order: 2; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ag-blue-bg); color: var(--ag-blue-ink); font-size: 0; display: inline-flex; align-items: center; }
#profileViewOverlay .ccpv .provider-credential-verified::after { content: 'Verified'; font-size: 11px; font-weight: 800; }
#profileViewOverlay .ccpv .provider-credential-verified svg { display: none; }
#profileViewOverlay .ccpv .pv-cred-grid > div:not(.provider-credential-card) { padding: 14px 6px !important; }
.ccpv-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 2px 6px; font-size: 12px; line-height: 1.5; color: var(--ag-muted); }
.ccpv-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--ag-label); }

/* Report / Block */
#profileViewOverlay .ccpv-safety { display: flex; justify-content: center; gap: 18px; padding: 2px 0 4px; flex-shrink: 0; }
#profileViewOverlay .ccpv-safety button {
  height: 40px; border: 0; background: transparent; color: var(--ag-pink-ink); padding: 0 6px;
  font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
#profileViewOverlay .ccpv-safety button[hidden] { display: none; }
#profileViewOverlay .ccpv-safety svg { width: 14px; height: 14px; }

/* Footer: Message + Hire */
#profileViewOverlay .pv-footer.ccpv-foot {
  flex-shrink: 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ag-card); border: 0;
  border-radius: 22px 22px 0 0; display: flex; gap: 10px; box-shadow: 0 -6px 20px rgba(10,30,18,.08); justify-content: stretch;
}
#profileViewOverlay .ccpv-foot button {
  height: 52px; border: 0; border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; margin: 0; box-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#profileViewOverlay .ccpv-foot .ccpv-msg { flex: 1; background: var(--ag-soft); color: var(--ag-ink); }
#profileViewOverlay .ccpv-foot .ccpv-hire { flex: 1.4; background: var(--ag-green); color: #fff; }
#profileViewOverlay .ccpv-foot svg { width: 18px; height: 18px; flex-shrink: 0; }
#profileViewOverlay .ccpv-foot button:disabled { opacity: .45; cursor: not-allowed; }

/* Blocked person: only Unblock (and Report) are left */
.ccpv-blocked b { font-size: 16px; font-weight: 800; }
.ccpv-blocked p { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--ag-text); }
.ccpv-blocked p i { width: 26px; height: 26px; border-radius: 9px; background: var(--ag-pink-bg); color: var(--ag-pink); font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ccpv-blocked small { font-size: 13px; line-height: 1.5; color: var(--ag-label); }
.ccpv-unblock { height: 50px; border: 2px solid var(--ag-green); border-radius: 14px; background: var(--ag-card); color: var(--ag-green-ink); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.ccpv.is-blocked .ccpv-stats, .ccpv.is-blocked .ccpv-tabs, .ccpv.is-blocked .provider-view-tab-panel, .ccpv.is-blocked .ccpv-foot,
.ccpv.is-blocked #pvBlockBtn, .ccpv.is-blocked .ccpv-badges, .ccpv.is-blocked .pv-skill { display: none !important; }
.ccpv.is-blocked #pv-avatar { background-color: var(--ag-soft) !important; color: var(--ag-label) !important; background-image: none !important; }
/* Your own public profile: nothing to message, hire, report or block */
.ccpv-selfnote { display: none; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--ag-blue-bg); color: var(--ag-blue-ink); font-size: 13px; font-weight: 700; text-align: center; }
.ccpv.is-self .ccpv-selfnote { display: block; }
.ccpv.is-self .ccpv-foot, .ccpv.is-self .ccpv-safety { display: none !important; }

@media (max-width: 600px) {
  #profileViewOverlay.modal-overlay { padding: 0 !important; align-items: stretch !important; }
  #profileViewOverlay .modal-container.ccpv {
    position: fixed; inset: 0; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important;
    border-radius: 0 !important; margin: 0 !important; transform: none !important;
  }
  #profileViewOverlay .ccpv-top { padding-top: env(safe-area-inset-top, 0px); }
}

/* ── Report sheet ── */
.ccr-ov { position: fixed; inset: 0; z-index: calc(var(--z-modal, 200000) + 40); background: rgba(10,30,18,.55); display: flex; align-items: flex-end; justify-content: center; font-family: 'Inter', system-ui, sans-serif; }
.ccr-ov[hidden] { display: none; }
.ccr { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; box-sizing: border-box; background: var(--ag-card); color: var(--ag-ink); border-radius: 24px 24px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; }
.ccr svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccr-handle { align-self: center; width: 40px; height: 5px; border-radius: 5px; background: var(--ag-track); flex-shrink: 0; }
.ccr-head { display: flex; align-items: center; gap: 12px; }
.ccr-tile { width: 44px; height: 44px; border-radius: 14px; background: var(--ag-orange-bg); color: var(--ag-orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ccr-tile svg { width: 22px; height: 22px; }
.ccr-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.ccr-head span { font-size: 13px; color: var(--ag-muted); }
.ccr fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }
.ccr legend, .ccr-lbl { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--ag-label); margin-bottom: 8px; padding: 0; }
.ccr-opt { min-height: 48px; box-sizing: border-box; border: 2px solid var(--ag-line); border-radius: 14px; padding: 8px 14px; display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; cursor: pointer; }
.ccr-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ag-orange); flex-shrink: 0; }
.ccr-opt:has(input:checked) { border-color: var(--ag-orange); background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.ccr-opt:focus-within { outline: 3px solid var(--ag-orange); outline-offset: 1px; }
.ccr label.ccr-field { display: flex; flex-direction: column; }
.ccr textarea { height: 76px; box-sizing: border-box; border: 2px solid var(--ag-track); border-radius: 14px; padding: 10px 14px; font-family: inherit; font-size: 15px; line-height: 1.4; color: var(--ag-ink); background: var(--ag-card); resize: none; }
.ccr textarea:focus { outline: none; border-color: var(--ag-orange); }
.ccr label.ccr-field[hidden] { display: none; }
.ccr select { min-height: 48px; box-sizing: border-box; border: 2px solid var(--ag-track); border-radius: 14px; padding: 0 12px; font-family: inherit; font-size: 15px; color: var(--ag-ink); background: var(--ag-card); }
.ccr-block { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 14px; background: var(--ag-pink-bg); color: var(--ag-pink-ink); font-size: 14px; font-weight: 700; cursor: pointer; box-sizing: border-box; }
.ccr-block[hidden] { display: none; }
.ccr-block input { width: 20px; height: 20px; margin: 0; accent-color: var(--ag-pink); flex-shrink: 0; }
.ccr-btns { display: flex; gap: 10px; }
.ccr-btns button { height: 52px; border: 0; border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ccr-cancel { flex: 1; background: var(--ag-soft); color: var(--ag-ink); }
.ccr-send { flex: 1.4; background: #a65a0a; color: #fff; }
.ccr-send:disabled { opacity: .5; cursor: default; }
@media (min-width: 601px) { .ccr-ov { align-items: center; padding: 16px; } .ccr { border-radius: 24px; } }

/* ── Client card (provider mode) ── */
#ccPersonSheet .cc-person-card.ccc { background: var(--ag-card); color: var(--ag-ink); padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; font-family: 'Inter', system-ui, sans-serif; }
.ccc svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ccc-handle { align-self: center; width: 40px; height: 5px; border-radius: 5px; background: var(--ag-track); }
.ccc-head { display: flex; align-items: center; gap: 14px; }
.ccc-av { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex-shrink: 0; background: var(--ag-purple-bg); color: var(--ag-purple); background-size: cover; background-position: center; }
.ccc-av.photo { color: transparent; }
.ccc-av.off { background-color: var(--ag-soft); color: var(--ag-label); background-image: none !important; }
.ccc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ccc-id h2 { margin: 0; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.ccc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.ccc-tag { height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.ccc-tag svg { width: 12px; height: 12px; stroke-width: 2.8; }
.ccc-tag.purple { background: var(--ag-purple-bg); color: var(--ag-purple); }
.ccc-tag.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccc-tag.pink { background: var(--ag-pink-bg); color: var(--ag-pink-ink); }
.ccc-x { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ag-soft); color: var(--ag-ink); display: flex; align-items: center; justify-content: center; align-self: flex-start; flex-shrink: 0; cursor: pointer; padding: 0; }
.ccc-x svg { width: 18px; height: 18px; }
.ccc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ccc-stat { border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; text-align: center; }
.ccc-stat b { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ccc-stat small { font-size: 11px; font-weight: 700; color: var(--ag-muted); }
.ccc-stat.orange { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
.ccc-stat.blue { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccc-stat.purple { background: var(--ag-purple-bg); color: var(--ag-purple); }
.ccc-stat .ccpv-star { width: 14px; height: 14px; }
.ccc-lbl { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--ag-label); }
.ccc-tasks { display: flex; flex-direction: column; gap: 8px; }
.ccc-task { border: 2px solid var(--ag-line); border-radius: 16px; background: var(--ag-card); padding: 10px 12px; display: flex; align-items: center; gap: 12px; font-family: inherit; text-align: left; color: var(--ag-ink); cursor: pointer; width: 100%; }
.ccc-task:hover { border-color: var(--ag-green); }
.ccc-task-ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--ag-green-bg); color: var(--ag-green-ink); }
.ccc-task:nth-child(2n) .ccc-task-ic { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
.ccc-task-ic svg { width: 18px; height: 18px; }
.ccc-task > span:not(.ccc-task-ic) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ccc-task b { font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccc-task small { font-size: 12px; color: var(--ag-label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccc-task em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--ag-teal-ink); flex-shrink: 0; }
.ccc-more { height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--ag-green-ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ccc-main { height: 52px; border: 0; border-radius: 14px; background: var(--ag-green); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.ccc-main svg { width: 18px; height: 18px; }
.ccc-main.outline { background: var(--ag-card); color: var(--ag-green-ink); border: 2px solid var(--ag-green); }
.ccc-safety { display: flex; justify-content: center; gap: 18px; }
.ccc-safety button { height: 40px; border: 0; background: transparent; color: var(--ag-pink-ink); font-family: inherit; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; padding: 0 6px; }
.ccc-safety svg { width: 14px; height: 14px; }
.ccc-blocked { display: flex; flex-direction: column; gap: 10px; }
.ccc-blocked b { font-size: 16px; font-weight: 800; }
.ccc-blocked p { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ag-text); }
.ccc-blocked p i { width: 26px; height: 26px; border-radius: 9px; background: var(--ag-pink-bg); color: var(--ag-pink); font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ccc-blocked small { font-size: 13px; line-height: 1.5; color: var(--ag-label); }
body.dark-mode #ccPersonSheet .cc-person-card.ccc { background: var(--ag-card); color: var(--ag-ink); }

/* ── Providers list (phone): one row per provider ── */
.prof-card-facts, .nh-quickchips { display: none; }
@media (max-width: 900px) {
  #professionalsContainer .professional-card .prof-card-facts { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--ag-label); }
  .prof-card-facts .pcf-star { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; color: var(--ag-orange-ink); }
  .prof-card-facts .pcf-star svg { width: 12px; height: 12px; fill: #e08a12; stroke: none; }
  #professionalsContainer .professional-card .prof-card-stars,
  #professionalsContainer .professional-card .prof-card-rank-badge { display: none !important; }
  #professionalsContainer .professional-card .prof-card-avatar { width: 52px; height: 52px; font-size: 17px; border: 0; }
  #professionalsContainer .prof-card-avatar[data-tone="0"] { background: var(--ag-green-bg); color: var(--ag-green-ink); }
  #professionalsContainer .prof-card-avatar[data-tone="1"] { background: var(--ag-pink-bg); color: var(--ag-pink-ink); }
  #professionalsContainer .prof-card-avatar[data-tone="2"] { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
  #professionalsContainer .prof-card-avatar[data-tone="3"] { background: var(--ag-purple-bg); color: var(--ag-purple); }
  #professionalsContainer .prof-card-avatar[data-tone="4"] { background: var(--ag-orange-bg); color: var(--ag-orange-ink); }
  #professionalsContainer .prof-card-avatar[data-tone="5"] { background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
  #professionalsContainer .professional-card .prof-card-rate { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; margin-left: 8px; }
  .prof-card-rate b { font-size: 15px; font-weight: 800; color: var(--ag-teal-ink); white-space: nowrap; }
  .prof-card-rate small { font-size: 11px; color: var(--ag-label); white-space: nowrap; }
  .prof-card-rate.none b { color: var(--ag-label); font-size: 13px; }
  .nh-quickchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding: 1px; }
  .nh-quickchips::-webkit-scrollbar { display: none; }
  .nh-quickchips button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ag-card); color: var(--ag-text); font-family: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; flex-shrink: 0; cursor: pointer; }
  .nh-quickchips button[aria-pressed="true"] { background: var(--ag-green-bg); color: var(--ag-green-ink); box-shadow: inset 0 0 0 2px var(--ag-green); }
}
.prof-card-rate { display: none; }

/* ── All Providers redesign (Ren 2026-11-03, canvas NVhJXxemxiGK8ix6EsJ1KB) ── */
.pcf-skills, .pcf-id, .pcf-rank, .pcf-dot, .nhq-note, .ccs-offline, .nhq-ic, .nhq-dot { display: none; }
@media (max-width: 900px) {
  #professionalsContainer .professional-card .prof-card-role,
  #professionalsContainer .professional-card .prof-card-verified { display: none !important; }
  #professionalsContainer .professional-card .prof-card-name-row { display: flex; align-items: center; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
  #professionalsContainer .professional-card .prof-card-name-row .prof-card-name { flex: 0 1 auto; margin-right: 0; }
  #professionalsContainer .professional-card .prof-card-avatar { position: relative; overflow: visible; }
  #professionalsContainer .pcf-dot { display: block; position: absolute; right: 0; bottom: 0; width: 13px; height: 13px; border-radius: 50%; background: #8a958d; border: 2px solid var(--ag-card, #fff); box-sizing: border-box; }
  #professionalsContainer .pcf-dot.on { background: #22a04b; }
  #professionalsContainer .pcf-id, #professionalsContainer .pcf-rank { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 10px; font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
  #professionalsContainer .pcf-id { background: var(--ag-green-bg); color: var(--ag-green-ink); }
  #professionalsContainer .pcf-id svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  #professionalsContainer .pcf-rank { background: var(--ag-blue-bg); color: var(--ag-blue-ink); }
  #professionalsContainer .pcf-skills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
  #professionalsContainer .pcf-sk { display: inline-flex; padding: 3px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: var(--ag-teal-bg); color: var(--ag-teal-ink); }
  #professionalsContainer .pcf-sk.more { background: var(--ag-soft); color: var(--ag-label); }
  #professionalsContainer .pcf-none { font-size: 12.5px; color: var(--ag-label); }
  #professionalsContainer .prof-card-facts { flex-wrap: wrap; }
  #professionalsContainer .prof-card-facts .pcf-on { color: var(--ag-green-ink); font-weight: 700; }
  #professionalsContainer .prof-card-facts .pcf-off { color: var(--ag-label); font-weight: 600; }
  #professionalsContainer .prof-card-rate.none b { color: var(--ag-ink); font-size: 13px; }
  .nh-quickchips button { display: inline-flex; align-items: center; gap: 6px; }
  .nhq-ic { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nhq-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #22a04b; }
  .nhq-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 12px 14px; border-radius: 14px; background: var(--ag-green-bg); color: var(--ag-ink); font-size: 13px; line-height: 1.45; }
  .nhq-note svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--ag-green-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .ccs-offline { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 16px; background: var(--ag-card); border: 1px dashed var(--ag-line); }
  .ccs-off-av { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--ag-soft); color: var(--ag-label); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .ccs-off-av i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #8a958d; border: 2px solid var(--ag-card, #fff); }
  .ccs-off-txt { flex: 1; display: flex; flex-direction: column; font-size: 13px; color: var(--ag-text); }
  .ccs-off-txt b { color: var(--ag-ink); }
  .ccs-off-txt small { font-size: 12.5px; color: var(--ag-label); }
  .ccs-offline button { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--ag-green-ink); font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
}
