/* Task Helper — the ONE CLIENT PAGE shell (job-intake.md §36; BRIEF-1048). Copyright Rapid Surveys Pty Ltd. App tokens only; namespace cp-. */
#cpSheet.cp-ov { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; background: rgba(20, 28, 40, .45); overflow-y: auto; }
#cpSheet.cp-ov[hidden] { display: none; }
.cp-card { width: 100%; max-width: 960px; background: var(--card); border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25); padding: 0 0 20px; }
.cp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.cp-back { flex: none; width: auto; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 8px 12px 8px 6px; background: transparent; color: var(--accent); border: 0; font-weight: 600; }
.cp-back:hover { background: var(--hover); }
#cpSheet .cp-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.cp-tag { flex: none; padding: 0 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cp-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.cp-tabs[hidden] { display: none; }
.cp-tabs [role="tab"] { flex: none; width: auto; margin: 0; padding: 12px 14px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.cp-tabs [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cp-msg { margin: 12px 16px 0; }
.cp-body { padding: 14px 16px 0; }
.cp-body:focus { outline: none; }
body.cp-open { overflow: hidden; }
@media (max-width: 767px) {   /* a phone: the whole page */
  #cpSheet.cp-ov { padding: 0; background: var(--card); }
  .cp-card { max-width: none; min-height: 100%; border-radius: 0; box-shadow: none; }
  .cp-head { border-radius: 0; padding-top: calc(10px + env(safe-area-inset-top)); }
  html.th-under .cp-head { padding-top: 10px; }   /* BRIEF-1307: under the top bar, which carries the safe area */
}
@media (pointer: coarse) { .cp-back, .cp-tabs [role="tab"] { min-height: 44px; } }
/* ROUND 26 PP6: a company's own logo on its Details (public/client-page/client-logo.js; namespace cpl-) */
.cpl { margin: 4px 0 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.cpl-h { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: normal; }
.cpl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.cpl-img { display: block; max-width: min(240px, 100%); max-height: 96px; object-fit: contain; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cpl-dim { color: var(--muted); font-size: 13px; }
.cpl-note { margin: 0 0 8px; }
label.cpl-up { display: inline-flex; align-items: center; cursor: pointer; }
.cpl-msg { margin: 0; font-size: 13px; }
.cpl-msg[hidden] { display: none; }
.cpl-msg.cpl-bad { color: var(--danger, #b91c1c); }
