/* Client cards — approved design (docs/client-cards-design, 2026-10-17). Tracker tokens; tags use the reference purple.
   The same card is used for the units inside a client (.cc2-unit). */
.card.cc2{--cc2-purple:#7c3aed;--cc2-tint:#f1eaff;--cc2-done:#b6a1df;--cc2-panel:var(--surface,#fff);--cc2-soft:var(--surface-2,#f8f7fc);--cc2-line:var(--border,#e6e4f0);--cc2-muted:var(--text-muted,#6b6785);--cc2-ink:var(--text,#171528);--cc2-green:var(--green,#15803d);--cc2-red:var(--red,#b42318);
  display:flex;flex-direction:column;min-width:0;padding:20px!important;border-radius:16px;cursor:pointer;color:var(--cc2-ink)}
[data-theme="dark"] .card.cc2{--cc2-purple:#bda1ff;--cc2-tint:#34274c;--cc2-done:#65527e}
.grid-clients:has(> .cc2),.grid:has(> .cc2-unit){grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr))!important;gap:15px}
.cc2 .cc2-ic{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cc2 button{font:inherit;color:inherit;cursor:pointer}
.cc2 button:focus-visible{outline:2px solid var(--cc2-purple);outline-offset:2px}

/* head: name, company, package (contact kept small) */
.cc2-head{display:flex;gap:10px;align-items:flex-start;min-width:0}
.cc2-av{position:relative;width:42px;height:42px;flex:none;border-radius:13px;background:var(--cc2-tint);color:var(--cc2-purple);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;overflow:hidden}
.cc2-av .av-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cc2-av.cc2-av-s{width:24px;height:24px;border-radius:50%;font-size:10.5px;background:var(--cc2-soft);color:var(--cc2-muted);border:1px solid var(--cc2-line)}
.cc2-name{min-width:0;flex:1}
.cc2-name h3{margin:0;font-size:15px;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.cc2-co{font-size:12px;color:var(--cc2-muted);font-weight:600;margin-top:2px;overflow-wrap:anywhere}
.cc2-pkg{font-size:11px;color:var(--cc2-muted);margin-top:1px}
.cc2-contact{font-size:11px;color:var(--text-faint,#9d9ab4);margin-top:2px;overflow-wrap:anywhere}

/* tags: one naturally wrapping row, all identical */
.cc2-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:15px 0 0;min-height:0}
.cc2-tag-link{text-decoration:none;cursor:pointer}.cc2-tag-link:hover{text-decoration:underline}
/* The same tag outside a card (unit Pricing box → Revenue management): the card's colours and icon. */
.cc2-solo{--cc2-purple:#7c3aed;--cc2-tint:#f1eaff}[data-theme="dark"] .cc2-solo{--cc2-purple:#bda1ff;--cc2-tint:#34274c}
.cc2-solo .cc2-ic{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cc2-tag{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;border-radius:6px;color:var(--cc2-purple);background:var(--cc2-tint);padding:5px 7px;min-height:28px;font-size:11px;line-height:1.35;font-weight:500}

/* progress: circle beside the sections */
.cc2-progress{margin-top:16px}
.cc2-summary{display:grid;grid-template-columns:86px minmax(0,1fr);gap:18px;align-items:center;padding:3px 0 2px}
.cc2-overall{display:flex;flex-direction:column;align-items:center;gap:10px}
.cc2-ring{--v:0;width:86px;height:86px;border-radius:50%;padding:6px;background:conic-gradient(from 0deg,var(--cc2-purple) calc(var(--v) * 1%),var(--cc2-tint) 0)}
.cc2-ring-in{display:flex;width:100%;height:100%;border-radius:50%;align-items:center;justify-content:center;flex-direction:column;background:var(--cc2-panel)}
.cc2-ring strong{font-size:23px;letter-spacing:-1px;font-weight:750;line-height:1.3;font-variant-numeric:tabular-nums}
.cc2-ring small{font-size:11px;color:var(--cc2-muted)}
.cc2-units{color:var(--cc2-muted);font-size:11px;display:flex;align-items:center;gap:5px;white-space:nowrap}
.cc2-phases{min-width:0;display:flex;flex-direction:column;gap:2px}
.cc2-phase{width:100%;border:0;border-radius:7px;background:transparent;padding:7px 5px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;text-align:left;font-size:11.5px;line-height:1.3}
.cc2-phase:hover{background:var(--cc2-soft)}
.cc2-pn{font-weight:500}
.cc2-pv{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--cc2-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.cc2-pv .cc2-ic{width:12px;height:12px}
.cc2-ok{display:inline-flex;color:var(--cc2-green)}
.cc2-bar{grid-column:1/-1;height:3px;background:var(--cc2-tint);border-radius:5px;overflow:hidden}
.cc2-bar>span{display:block;height:100%;background:var(--cc2-purple);border-radius:5px}
.cc2-phase[data-complete="true"] .cc2-bar{background:var(--cc2-soft)}
.cc2-phase[data-complete="true"] .cc2-bar>span{background:var(--cc2-done)}
.cc2-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin-top:15px;padding-top:9px;font-size:11px;color:var(--cc2-muted);border-top:1px solid var(--cc2-line)}
.cc2-od{color:var(--cc2-red)!important;font-weight:500}

/* next step */
.cc2-next{margin-top:12px;border-radius:9px;background:var(--cc2-soft);padding:12px;display:flex;gap:9px;align-items:flex-start}
.cc2-next>.cc2-ic{width:15px;height:15px;margin-top:2px;color:var(--cc2-muted)}
.cc2-next-l{color:var(--cc2-muted);font-size:11px;letter-spacing:.4px;text-transform:uppercase;margin-bottom:3px}
.cc2-next-t{font-size:12.5px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.cc2-next-s{font-size:11px;color:var(--cc2-muted);margin-top:4px;overflow-wrap:anywhere}

/* footer: setup lead + Open client */
.cc2-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:13px}
.cc2-owner{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--cc2-muted);min-width:0}
.cc2-acts{display:flex;align-items:center;gap:6px;flex:none}
.cc2-open{display:inline-flex;align-items:center;gap:6px;color:var(--cc2-purple)!important;background:var(--cc2-tint);border:1px solid transparent;padding:7px 10px;border-radius:8px;font-size:11.5px;font-weight:600;min-height:32px}
.cc2-open:hover{border-color:var(--cc2-purple)}
.cc2 .cc2-del{background:transparent;border:1px solid var(--cc2-line);color:#dc2626!important;font-size:11.5px;font-weight:600;padding:6px 9px;border-radius:8px;min-height:32px}
.cc2 .cc2-del:hover{background:#fdeaea;border-color:#f2b8b8}
[data-theme="dark"] .cc2 .cc2-del{color:#fca5a5!important}
[data-theme="dark"] .cc2 .cc2-del:hover{background:#3b1a1a;border-color:#7f1d1d}
body[data-del="0"] .cc2 .cc2-del{display:none}

/* phones: circle above full-width section rows, 44px tap targets */
@media (max-width:640px){
  .card.cc2{padding:19px!important}
  .cc2-name h3{font-size:16px}
  .cc2-summary{grid-template-columns:1fr;gap:12px}
  .cc2-overall{flex-direction:row;gap:16px;padding-bottom:14px;border-bottom:1px solid var(--cc2-line)}
  .cc2-ring{width:78px;height:78px;padding:5px}
  .cc2-units{font-size:12px;flex-direction:column;align-items:flex-start;gap:4px}
  .cc2-units .cc2-ic{display:none}
  .cc2-units::before{content:'Overall setup';color:var(--cc2-ink);font-size:14px;font-weight:600}
  .cc2-phases{gap:0}
  .cc2-phase{min-height:44px;padding:7px 2px;row-gap:7px;font-size:12.5px}
  .cc2-pv{font-size:12px;gap:6px}
  .cc2-pv .cc2-ic{width:14px;height:14px}
  .cc2-tag{min-height:44px;padding:8px 9px}
  .cc2-total{margin-top:12px;padding-top:13px}
  .cc2-next-t{font-size:13px}
  .cc2-foot{padding-top:16px}
  .cc2-open,.cc2 .cc2-del{min-height:44px;padding-inline:12px;font-size:12px}
}
@media (prefers-reduced-motion:reduce){.cc2 *{transition:none!important}}

/* Two readable cards on open phones; compact card interiors follow their own width. */
@media(min-width:600px) and (max-width:960px){
 .grid-clients:has(> .cc2),.grid:has(> .cc2-unit){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .card.cc2{container:cc2-card / inline-size;padding:16px!important}
 .cc2-foot{flex-wrap:wrap}.cc2-acts{margin-left:auto}
}
@container cc2-card (max-width:350px){
 .cc2-summary{grid-template-columns:minmax(0,1fr);gap:12px}
 .cc2-overall{flex-direction:row;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--cc2-line)}
 .cc2-ring{width:72px;height:72px;padding:5px;flex:none}
 .cc2-units{white-space:normal}
 .cc2-phase{min-height:44px;font-size:12px}
 .cc2-open,.cc2 .cc2-del{min-height:44px}
}
