/* Card contents use only the existing role scope and the active theme tokens. */
.people-group{margin:32px 0}.people-group .sectionhead{margin:0 0 16px}.people-group-count{font-size:13px;color:var(--muted);font-weight:400;margin-left:8px}.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:18px}.person-card.panel{padding:22px;margin:0;min-width:0;display:flex;flex-direction:column;gap:16px}.person-card-heading{display:flex;align-items:center;gap:14px;color:var(--theme-foreground)}.person-card-heading h3{font-size:19px;line-height:1.35;margin:0;overflow-wrap:anywhere}.person-card-heading .entity-avatar{flex-shrink:0;width:46px;height:46px}.person-card-role{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.person-card-role .entity-pill{white-space:normal}.person-card-contacts{display:flex;flex-direction:column;gap:7px;font-size:13px;overflow-wrap:anywhere}.person-card-open{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:14px;margin-top:auto;font-size:12px;color:var(--muted)}.person-card a:hover{color:var(--readable-accent)}
.project-summary-card .project-cover{display:block;color:inherit;flex-shrink:0}.project-summary-card h3 a{color:var(--theme-foreground)}.project-summary-card h3 a:hover{color:var(--readable-accent)}.project-summary-card .project-card-content{min-width:0}.project-card-facts{display:flex;flex-direction:column;gap:17px;margin:14px 0 20px;font-size:13px}.project-card-facts>div{min-width:0}.project-card-facts dt{font-size:10px;font-weight:500;margin:0 0 6px;color:var(--muted)}.project-card-facts dd{margin:0;min-width:0;display:flex;flex-direction:column;gap:7px}.card-person-link{display:flex;align-items:center;gap:8px;color:var(--theme-foreground);font-size:12px;line-height:1.4;min-width:0}.card-person-link>span:last-child{overflow-wrap:anywhere}.card-person-link .entity-avatar{width:27px;height:27px;flex-shrink:0;font-size:12px}.project-card-price{padding-top:15px;border-top:1px solid var(--line)}.project-card-price strong{font-size:19px;font-weight:600;overflow-wrap:anywhere}.project-card-price small{font-size:10px;color:var(--muted);line-height:1.4}.project-card-facts .project-card-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-card-dates dd{font-size:12px}.project-summary-card .cardbottom{margin-top:auto}.project-summary-card a:focus-visible,.person-card a:focus-visible{outline-offset:3px}
@media(max-width:760px){.people-group{margin:26px 0}.people-grid{gap:14px}.person-card.panel{padding:20px}.project-card-facts{gap:16px}.project-card-price strong{font-size:21px}}

.person-card-presence{display:grid;gap:4px;margin-top:12px}

/* A single compact line replaces the full-height participant name blocks. */
.project-card-team{display:flex;align-items:center;gap:9px;min-width:0;max-width:100%;margin:14px 0 0;min-height:28px;overflow-x:auto;scrollbar-width:thin;padding:3px 0 5px}
.project-team-role{display:flex;align-items:center;gap:4px;flex:none}
.project-team-label{font-size:9px;line-height:1.2;color:var(--muted);white-space:nowrap}
.project-team-avatars{display:flex;align-items:center;flex:none;padding:0 1px}
.project-team-avatar{position:relative;display:inline-flex;flex:none;border-radius:7px;color:var(--theme-foreground);line-height:1}
.project-team-avatar+.project-team-avatar{margin-left:-9px}
.project-team-avatar:hover,.project-team-avatar:focus-visible{z-index:2}
.project-card-team .entity-avatar{width:24px;height:24px;flex-basis:24px;border-radius:7px;font-size:11px;box-shadow:0 0 0 2px var(--theme-card,var(--white))}
.project-card-team .avatar-presence-dot{display:none!important}
.project-team-empty{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:var(--muted);font-size:12px;border:1px dashed var(--line);border-radius:7px}
.project-team-onsite{display:flex;align-items:center;gap:4px;flex:none;margin-left:auto;padding-left:7px;border-left:1px solid var(--line)}
.project-onsite-link{display:flex;align-items:center;gap:3px;flex:none;color:var(--theme-foreground);min-height:24px}
.project-onsite-icon{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;color:var(--muted)}
.project-onsite-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:21px;padding:0 4px;background:var(--pill-worker-bg);color:var(--pill-worker-fg);border-radius:6px;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}
.project-team-onsite:not([data-onsite-count]) .project-onsite-count{background:var(--pill-neutral-bg);color:var(--pill-neutral-fg)}
.project-onsite-avatars:empty{display:none}
.project-summary-card .project-card-content{container-type:inline-size}
@container (max-width:340px){
 .project-card-team{gap:6px}
 .project-team-role{gap:3px}
 .project-card-team .entity-avatar,.project-team-empty{width:22px;height:22px;flex-basis:22px}
 .project-team-onsite{padding-left:5px;gap:3px}
}
@container (max-width:285px){
 .project-onsite-icon{display:none}
 .project-team-label{font-size:8px}
 .project-card-team{gap:5px}
 .project-card-team .entity-avatar,.project-team-empty{width:20px;height:20px;flex-basis:20px}
 .project-onsite-count{min-width:17px;height:20px;padding:0 3px}
}
