/* Product: Zoho CRM Plus - page-specific design.
   Shared Zoho blue accent. The mechanic is one customer record viewed through four department
   lenses: switching tabs redraws the same card with what that department specifically sees and
   contributes. Distinct from every other page: one entity from four angles, not a diagram,
   feed, timeline or merge.

   All classes scoped to .cxp-page, prefixed cxp-. */

.cxp-page { --cxp: #226eb3; --cxp-d: #17517f; --cxp-l: #eaf2f9; }

.cxp-page .ph-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
  margin-block-end: 18px;
}
.cxp-page .ph-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 24px; }

/* ------------------------------------------------------------------------- view -- */
.cxp-view { padding: clamp(48px, 7vw, 84px) 0; }
.cxp-view h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 0 0 12px; }
.cxp-view .lede { max-width: 82ch; }

.cxp-dept-pick { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 20px; }
.cxp-dept {
  font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer;
  padding: 10px 20px; border-radius: 999px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cxp-dept:hover { border-color: color-mix(in srgb, var(--cxp) 45%, var(--line)); }
.cxp-dept[aria-pressed="true"] { background: var(--cxp-d); border-color: var(--cxp-d); color: #fff; }

.cxp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(20px, 3.5vw, 30px);
  box-shadow: 0 20px 50px -40px rgba(20, 60, 100, .3);
}
.cxp-card-head { display: flex; align-items: center; gap: 14px; padding-block-end: 18px; border-block-end: 1px solid var(--line); margin-block-end: 18px; }
.cxp-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: .95rem;
  background: var(--cxp-l); color: var(--cxp-d);
}
.cxp-name { margin: 0; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.cxp-sub { margin: 3px 0 0; color: var(--muted); font-size: .88rem; }

.cxp-card-body { display: grid; gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .cxp-card-body.is-in { animation: cxp-fade .3s ease-out; }
}
@keyframes cxp-fade { from { opacity: .25; } to { opacity: 1; } }

.cxp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px; border-radius: 10px; background: var(--paper, #f7f9fa);
  font-size: .92rem;
}
.cxp-row span { color: var(--muted); }
.cxp-row b { color: var(--cxp-d); font-weight: 800; }

/* ------------------------------------------------------------------------ need -- */
.cxp-need {
  padding: clamp(40px, 6vw, 64px) 0;
  background: var(--cxp-l);
  border-block: 1px solid color-mix(in srgb, var(--cxp) 18%, var(--line));
}
.cxp-need h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 0 0 12px; }
.cxp-need .lede { max-width: 82ch; margin: 0; }

/* ------------------------------------------------------------------------- caps -- */
.cxp-caps { padding: clamp(48px, 7vw, 84px) 0; }
.cxp-caps h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 22px; }
.cxp-cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 13px; }
.cxp-cap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.cxp-cap b { display: block; margin-block-end: 6px; font-size: 1.02rem; color: var(--cxp-d); }
.cxp-cap p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ----------------------------------------------------------------------- move -- */
.cxp-move { padding: clamp(48px, 7vw, 84px) 0; }
.cxp-move h2 { font-size: 1.35rem; margin: 0 0 10px; }
.cxp-move h3 { font-size: 1.08rem; }

@media (max-width: 480px) {
  .cxp-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}
