/* YOUR TEAM (team.css): the roster on Profile Settings, the Team tab of
   Estimation and Bidding, and the Team module of a job. Same list language
   as the vendor card (.vd-*), with the tags a person carries. */
.tm { display: flex; flex-direction: column; gap: 14px; }
.tm.is-busy, [data-team-mount].is-busy .tm { opacity: .6; pointer-events: none; }
.tm-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tm-hint { flex: 1 1 100%; font-size: 12px; color: var(--gray-light, #aeaeb2); line-height: 1.5; }
.tm-note { padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(196,23,23,.35); background: rgba(196,23,23,.08); font-size: 13px; color: var(--white, #fff); }
.tm-note b { color: #fff; }
/* The list scrolls inside its card, the same 520 px the vendor list keeps. */
.tm-list { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; overflow: hidden; max-height: 520px; overflow-y: auto; }
.tm-list.is-quiet .tm-row { opacity: .92; }
.tm-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.tm-row:last-child { border-bottom: 0; }
.tm-row:hover { background: rgba(255,255,255,.035); }
.tm-avatar { width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; color: #fff; background: rgba(255,255,255,.12); letter-spacing: .02em; }
.tm-avatar.is-joined { background: linear-gradient(135deg, rgba(196,23,23,.95), rgba(122,14,14,.95)); }
.tm-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tm-name { font-weight: 650; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--white, #fff); }
.tm-title { font-weight: 500; font-size: 12.5px; color: var(--gray-light, #aeaeb2); }
.tm-role { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 100px; background: rgba(196,23,23,.18); color: #ff8f8f; }
.tm-carried { font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.tm-sub { font-size: 12.5px; color: var(--gray-light, #aeaeb2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tm-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 100px; background: rgba(255,255,255,.07); color: var(--gray-light, #aeaeb2); }
.tm-tag.is-full { background: rgba(47,192,125,.14); color: #2fc07d; }
.tm-tag.is-sector { background: rgba(255,255,255,.05); }
.tm-tag.is-count { background: transparent; border: 1px solid rgba(255,255,255,.12); }
.tm-acts { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.tm-acts .sr-act .ws-i { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.tm-add .ws-i { width: 14px; height: 14px; }
.tm-empty { padding: 30px 16px; text-align: center; max-width: 60ch; margin: 0 auto; }
.tm-empty .ws-blank-i { margin: 0 auto 12px; }
.tm-empty h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--white, #fff); }
.tm-empty p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--gray-light, #aeaeb2); }
.tm-sec { display: flex; flex-direction: column; gap: 10px; }
.tm-sec-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tm-sec-h h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: var(--white, #fff); display: flex; align-items: center; gap: 8px; }
.tm-sec-s { font-size: 12.5px; color: var(--gray-light, #aeaeb2); flex: 1 1 auto; min-width: 0; }
.tm-sec-acts { display: flex; gap: 8px; }
.tm-sec-acts .up-btn .ws-i, .tm-empty .up-btn .ws-i { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.tm-q { flex: 0 1 260px; }
.tm-pick { display: flex; align-items: center; gap: 10px; }
.tm-pick > span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.tm-pick select { flex: 1 1 auto; max-width: 560px; font: inherit; font-size: 13px; padding: 9px 34px 9px 12px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--white, #fff); -webkit-appearance: none; appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aeaeb2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
/* the profile card's mount and the member banner at the top of the panel */
.tm-mount { min-height: 60px; }
/* Profile Settings in one screen (Landon, 2026-09-29): Your team, Your
   vendors and the three account forms (contact, sign-in email, password)
   side by side, the forms stacked in the third column, so nothing has to
   be scrolled to. Each list scrolls inside its card. Two columns with the
   forms in a row under them on a narrower screen; one column on a phone. */
.up-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .82fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.up-pair .up-card { max-width: none; margin-bottom: 0; min-width: 0; }
.up-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.up-stack .up-card { padding: 22px 24px; }
.up-stack .up-card-head { margin-bottom: 14px; }
/* Beside the three forms the lists may run a little longer, so a full
   roster and a full directory reach the same bottom edge as the forms. */
.up-pair .tm-list, .up-pair .vd-list { max-height: 560px; }
.up-pair .vd-head > div:first-child { flex: 1 1 240px; }
.up-pair .vd-bar { flex-wrap: wrap; }
.up-pair .vd-bar .cc-link { margin-left: 0; }
@media (max-width: 1640px) {
    .up-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .up-stack { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
    .up-pair { grid-template-columns: minmax(0, 1fr); }
    .up-stack { grid-template-columns: minmax(0, 1fr); }
}
.up-member { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(196,23,23,.35); background: rgba(196,23,23,.08); font-size: 13px; color: var(--white, #fff); }
.up-member b { color: #fff; }
html.light .up-member { background: rgba(196,23,23,.06); color: #111; }
html.light .up-member b { color: #111; }
/* the Team tab of Estimation and Bidding and the job module share the card */
.es-team, .ws-mod .tm-host { padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.025); }
/* light theme */
html.light .tm-note { background: rgba(196,23,23,.06); color: #111; }
html.light .tm-note b { color: #111; }
html.light .tm-list { border-color: rgba(0,0,0,.09); }
html.light .tm-row { border-bottom-color: rgba(0,0,0,.07); }
html.light .tm-row:hover { background: rgba(0,0,0,.03); }
html.light .tm-avatar { background: rgba(0,0,0,.08); color: #333; }
html.light .tm-avatar.is-joined { background: linear-gradient(135deg, rgba(196,23,23,.95), rgba(122,14,14,.95)); color: #fff; }
html.light .tm-name, html.light .tm-empty h3, html.light .tm-sec-h h3 { color: #111; }
html.light .tm-title, html.light .tm-sub, html.light .tm-tag, html.light .tm-carried, html.light .tm-empty p, html.light .tm-sec-s, html.light .tm-hint, html.light .tm-pick > span { color: #5f5f66; }
html.light .tm-tag { background: rgba(0,0,0,.06); }
html.light .tm-tag.is-full { background: rgba(20,168,106,.14); color: #0f7a4b; }
html.light .tm-tag.is-count { border-color: rgba(0,0,0,.14); }
html.light .tm-role { background: rgba(196,23,23,.1); color: #c41717; }
html.light .tm-pick select { background-color: #fff; border-color: rgba(0,0,0,.13); color: #111; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html.light .es-team, html.light .ws-mod .tm-host { background: #fff; border-color: rgba(0,0,0,.09); }
@media (max-width: 760px) {
    .tm-row { flex-wrap: wrap; }
    .tm-acts { width: 100%; justify-content: flex-start; }
}
