/* Task Helper — people on screen (job-intake.md §30 T-4; BRIEF-952). Copyright Rapid Surveys Pty Ltd. App tokens only. */
/* the assignee list: members, then the link's people after a quiet divider */
.pp-div { margin: 6px 10px 2px; padding: 6px 0 2px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.asg-opt .pp-sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.asg-opt.pp-off { color: var(--muted); cursor: not-allowed; background: none; }
.asg-opt.pp-off .pp-sub { color: var(--muted); }
.pp-go { width: auto; margin: 2px 0 0; padding: 0; background: none; border: 0; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
/* the Members screen's matching */
.pp-sec { margin: 16px 0 0; }
.pp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.pp-row:first-child { border-top: 0; }
.pp-name { flex: 1 1 140px; min-width: 0; margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pp-ctl { display: flex; gap: 8px; align-items: center; flex: 1 1 220px; min-width: 0; }
.pp-sel { flex: 1; min-width: 0; margin: 0; }
.pp-ctl button { width: auto; flex: none; }
.pp-msg { flex: 1 1 100%; margin: 2px 0 0; }
@media (pointer: coarse) { .pp-sel, .pp-ctl button { min-height: 44px; } }
/* a row with a second line (the reason / "not a member") stacks: name, then the line, then the link */
.asg-opt.pp-off, .asg-opt:has(.pp-sub) { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pp-un { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; font-weight: 600; }   /* secondary: one primary per screen */
.pp-un:hover { background: var(--hover) !important; }
@media (pointer: coarse) { .pp-go { min-height: 44px; display: inline-flex; align-items: center; } }
/* the Connected badge (BRIEF-952a): an icon + the word, quiet; its meaning in the tooltip / for screen readers */
.pp-badge { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 0 6px; border: 1px solid #9cc3a4; border-radius: 9px; color: #1d6b33; font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: middle; white-space: nowrap; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.asg-opt .pp-badge { margin: 0; }
.asg-chip .pp-badge { margin-left: 4px; }
.pp-row .pp-badge { flex: none; }
.asg-opt.pp-inv, .pp-inv { color: var(--muted); }
.pp-inv .pp-tag, .asg-chip .pp-state { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.pp-nameed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.pp-nameed .pp-nin { flex: 1 1 160px; min-width: 0; margin: 0; }
.pp-nameed button { width: auto; flex: none; }
.pp-nmsg { flex: 1 1 100%; margin: 2px 0 0; }
.mem-rename, .inv-name { width: auto; margin: 0 0 0 6px; padding: 2px 8px; font-size: 12px; vertical-align: middle; }
@media (pointer: coarse) { .pp-nameed button, .pp-nin, .mem-rename, .inv-name { min-height: 44px; } }
/* BRIEF-952e — the picker rows + chips carry the task list's initials circle; the details live in one tooltip */
.asg-opt.pp-r { display: flex; align-items: center; gap: 8px; }
.asg-opt.pp-r .pp-txt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.asg-opt.pp-r.pp-off { align-items: flex-start; flex-direction: row; }
.asg-opt.pp-r .pp-txt .pp-go { display: block; }
.asg-opt .pp-av, .asg-chip .pp-av { margin: 0; flex: none; border-color: transparent; position: relative; }
.asg-chip .pp-av { width: 24px; height: 24px; font-size: 10px; margin-right: 4px; }
.asg-chip.pp-c { padding-left: 2px; }
.pp-av.pp-dash { border: 2px dashed var(--muted); box-shadow: inset 0 0 0 1px var(--card); }
.pp-dot { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border: 2px solid var(--card); border-radius: 50%; background: #1d6b33; }
.pp-tip { position: fixed; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: var(--card); font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.pp-tip[hidden] { display: none; }
@media (hover: none) { .asg-opt .pp-av, .asg-chip .pp-av { -webkit-touch-callout: none; user-select: none; } }
/* BRIEF-952f — the form's chosen assignees: the circle alone (it is the remove button); ✕ on hover / keyboard focus */
.asg-chip.pp-ic { padding: 0; gap: 0; background: none; border: 0; }
.asg-x.asg-av { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: transparent; color: inherit; }
.asg-x.asg-av:hover { background: transparent; color: inherit; }
.asg-x.asg-av .pp-av { width: 28px; height: 28px; font-size: 11px; margin: 0; }
.asg-xm { position: absolute; top: -3px; right: -3px; display: none; width: 16px; height: 16px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 9px; font-weight: 700; line-height: 1; }
.asg-x.asg-av:hover .asg-xm, .asg-x.asg-av:focus-visible .asg-xm { display: inline-flex; }
@media (hover: none) { .asg-x.asg-av:hover .asg-xm { display: none; } }
@media (pointer: coarse) { .asg-x.asg-av { width: 44px; height: 44px; } }
.asg-tap { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 8px; border-top: 1px solid var(--line); font-size: 14px; }
.asg-tapt { flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.asg-rm { width: auto; flex: none; }
@media (pointer: coarse) { .asg-rm { min-height: 44px; } }
