/* Card contents use only the existing role scope and the active theme tokens. */
/* People are full-width rows; role groups and live presence use the same markup. */
.people-group{margin:28px 0}.people-group .sectionhead{margin:0 0 12px}.people-group-count{font-size:13px;color:var(--muted);font-weight:400;margin-left:8px}
.people-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.person-card.panel{padding:14px 18px;margin:0;min-width:0;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr) 36px;align-items:center;gap:18px}
.person-card-identity{min-width:0;position:relative;padding-left:56px}
.person-card-heading{display:flex;align-items:center;color:var(--theme-foreground);min-height:24px}
.person-card-heading h3{font-size:16px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.person-card-heading .entity-avatar{position:absolute;left:0;top:50%;transform:translateY(-50%);width:42px;height:42px;flex-shrink:0}
.person-card-role{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:5px}.person-card-role .entity-pill{white-space:normal;font-size:11px;padding:3px 8px}
.person-card-contacts{display:flex;flex-direction:column;gap:5px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.person-card-status{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.person-card-presence{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 7px;min-width:0}.person-card-presence small{font-size:11px}
.person-card-open{display:flex;align-items:center;justify-content:center;width:36px;min-height:36px;border:1px solid var(--line);border-radius:8px;font-size:18px;color:var(--muted)}.person-card a:hover{color:var(--readable-accent)}
.entity-pill.telegram-connected{display:inline-flex;align-items:center;gap:4px;background:#e2f2e7;color:#24653b;border:1px solid #b6d9c2;font-size:12px;line-height:1.4;white-space:normal}
:root[data-theme=dark] .entity-pill.telegram-connected{display:inline-flex;align-items:center;gap:4px;background:#203b2b;color:#95dfae;border-color:#365e43}
@media(max-width:1050px){.person-card.panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px;gap:10px 16px}.person-card-identity{grid-column:1;grid-row:1 / span 2}.person-card-contacts{grid-column:2;grid-row:1}.person-card-status{grid-column:2;grid-row:2}.person-card-open{grid-column:3;grid-row:1 / span 2}}
@media(max-width:600px){.person-card.panel{grid-template-columns:minmax(0,1fr) 32px;padding:12px;gap:8px 10px}.person-card-identity{grid-column:1;grid-row:1;padding-left:48px}.person-card-heading .entity-avatar{width:36px;height:36px}.person-card-heading h3{font-size:15px}.person-card-open{grid-column:2;grid-row:1;width:32px;min-height:36px}.person-card-contacts{grid-column:1 / -1;grid-row:2}.person-card-contacts:empty{display:none}.person-card-status{grid-column:1 / -1;grid-row:3;flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px 12px}}

.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}.project-card-facts{gap:16px}.project-card-price strong{font-size:21px}}


/* 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:50%;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:50%;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}
}
