/* Team module. Scoped under .team-root; shared tokens/typography come from ../style.css. */
.team-root{display:grid;gap:20px}
.team-root:focus{outline:none} /* programmatic fallback target only; controls keep their focus ring */
.team-root .team-card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:23px;min-width:0}
.team-root .team-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);overflow-x:auto}
.team-root .team-tabs button{border:0;border-radius:0;background:none;border-bottom:3px solid transparent;padding:13px 0;white-space:nowrap;color:var(--muted);min-height:44px}
.team-root .team-tabs button[aria-selected=true]{border-bottom-color:var(--amber);color:var(--ink);font-weight:600}
.team-root .team-list{list-style:none;margin:0;padding:0}
.team-root .team-list li{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}
.team-root .team-list li:last-child{border-bottom:0}
.team-root .team-list li>div:first-child{min-width:0;flex:1}
.team-root .team-list strong,.team-root .team-list .muted{display:block;overflow-wrap:anywhere}
.team-root .team-list .muted{font-size:15px}
.team-root .team-list p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.team-root .inline{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:15px}
.team-root .danger{color:var(--danger)}
.team-root .team-dl{display:grid;grid-template-columns:auto 1fr;gap:6px 15px}
.team-root .team-dl dt{color:var(--muted)}
.team-root .team-dl dd{margin:0;overflow-wrap:anywhere}
.team-root legend{font-weight:600;margin-bottom:8px}
.team-root .team-report{margin:16px 0;border-top:1px solid var(--line);padding-top:16px}
@media (max-width:720px){.team-root .team-card{padding:16px}.team-root .team-list li{align-items:flex-start}.team-root .actions{width:100%}}
/* Task lists (docs/TASK-LISTS.md). Text labels carry the status; color only reinforces it. */
.team-root .tasklist{list-style:none;padding:0;display:grid;gap:12px;margin:12px 0}
.team-root .tasklist-item{border:1px solid var(--line);border-radius:10px;padding:12px 14px;background:var(--bg)}
.team-root .tasklist-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.team-root .tasklist-summary{font-weight:600}
.team-root .tasklist-match .muted,.team-root .tasklist-match .field-note{display:block;overflow-wrap:anywhere}
.team-root .coverage{font-size:13px;font-weight:700;border-radius:999px;padding:3px 10px;border:1px solid var(--line)}
.team-root .coverage-covered{color:var(--green);border-color:var(--green)}
.team-root .coverage-suggested{color:var(--amber);border-color:var(--amber)}
.team-root .coverage-missing{color:var(--danger);border-color:var(--danger)}
.team-root .coverage-not_done{color:var(--muted)}
.team-root .task-thumb{width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid var(--line);flex-shrink:0}
.team-root .tasklist-match{display:flex;gap:12px;align-items:flex-start}
.team-root .template-card{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
/* Job fields for the v4 report (job_templates_v1): general contractor, recipients and copy-to rows. */
.team-root .report-fields{border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:12px 0;display:grid;gap:8px}
.team-root .report-fields h4{margin:8px 0 0}
.team-root .report-fields .row{align-items:flex-end}
