/* Team-up and opt-in roster styles; web/styles.css remains unchanged from v68. */
.dir-team-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: -5px; color: #748394; font-size: 11px; font-weight: 650; }
.dir-team-links button, .dir-team-pill { border: 1px solid #e9d9cb; border-radius: 999px; padding: 5px 10px; background: #fcf5ee; color: #914f2d; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.dir-team-links button:hover, .dir-team-pill:hover { border-color: #c47a4b; background: #f7eadf; }
.dir-team-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; }
.dir-team-description { color: #506679; line-height: 1.6; }
.dir-team-roster { display: grid; gap: 10px; }
.dir-team-roster-row { display: flex; align-items: center; gap: 12px; border: 1px solid #eee9e3; border-radius: 13px; padding: 11px; background: #fff; }
.dir-team-roster-row > div { display: grid; flex: 1; min-width: 0; gap: 3px; }
.dir-team-roster-row strong { color: #203647; }
.dir-team-roster-row > div span { overflow: hidden; color: #718295; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dir-team-roster-row .dir-avatar { width: 43px; height: 43px; border-radius: 13px; font-size: 16px; }
.dir-firm-roster { margin-top: 12px; }
.firm-visibility-card { margin: 0 0 18px; border-color: #e9d8c9; background: #fffaf6; }
.firm-visibility-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.firm-visibility-toggle input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: #aa5f32; }
.firm-visibility-toggle > span { display: grid; gap: 5px; }
.firm-visibility-toggle strong { color: #21384a; }
.firm-visibility-toggle small { max-width: 650px; color: #718295; line-height: 1.5; }
.dir-kind-filter { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-kind-filter button { min-height: 37px; border: 1px solid #e5e1db; border-radius: 999px; padding: 0 12px; background: #fff; color: #526579; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.dir-kind-filter button.is-active { border-color: #243e52; background: #172c3b; color: #fff; }
.dir-kind-filter button span { opacity: .75; }

/* Professional team-up flow. */
.team-up-explainer { margin-bottom: 20px; border-color: #e9d8c9; background: linear-gradient(115deg, #fffaf6, #fff 72%); padding: 24px; }
.team-up-explainer h3 { margin: 0 0 6px; color: #182d3c; font-size: 22px; }
.team-up-explainer p { max-width: 720px; margin: 0; color: #617588; line-height: 1.6; }
.team-up-card { display: grid; gap: 18px; margin: 18px 0; padding: 23px; }
.team-up-card.is-archived { opacity: .82; background: #faf9f7; }
.team-up-card-head, .team-invites-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.team-up-card-head h3, .team-create-card h3, .team-empty h3 { margin: 10px 0 5px; color: #182d3c; font-size: 23px; }
.team-up-card-head p { margin: 0; }
.team-member-list { display: grid; gap: 8px; }
.team-member-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #eeeae5; padding: 12px 0 3px; }
.team-member-row > div { display: grid; flex: 1; gap: 3px; }
.team-member-row > div span { color: #718295; }
.team-edit-form, #team-create-form { display: grid; gap: 12px; }
.team-edit-form { border-top: 1px solid #eeeae5; padding-top: 17px; }
.team-edit-form label, #team-create-form label { display: grid; gap: 6px; color: #31495c; font-size: 13px; font-weight: 700; }
.team-edit-form input, .team-edit-form textarea, #team-create-form input, #team-create-form textarea { width: 100%; border: 1px solid #dcd8d1; border-radius: 10px; padding: 11px 12px; background: #fff; color: #182d3c; font: inherit; font-weight: 450; }
.team-invites { border-top: 1px solid #eeeae5; padding-top: 18px; }
.team-invites-head { align-items: center; }
.team-invites-head h4 { margin: 0; color: #23394b; font-size: 16px; }
.team-invites-head p { margin: 4px 0 0; }
.team-invite-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; border: 1px solid #eee9e3; border-radius: 11px; padding: 8px; }
.team-invite-row input { flex: 1; min-width: 80px; border: 0; background: transparent; color: #526579; font: inherit; font-size: 12px; }
.team-invite-state { color: #617588; font-size: 12px; white-space: nowrap; }
.team-collaboration-settings { margin: 18px 0; padding: 22px; }
.team-collaboration-head h3 { margin: 6px 0 4px; color: #182d3c; }
.team-collaboration-head p { max-width: 680px; margin: 0 0 18px; }
.team-collab-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.team-collab-toggle input, .team-collab-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #b96836; }
.team-collab-toggle span { display: grid; gap: 3px; }
.team-collab-toggle small { color: #617588; }
.team-collab-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 14px 0 0; border: 0; border-top: 1px solid #eeeae5; }
.team-collab-types legend { padding: 0 8px 0 0; color: #42596d; font-size: 13px; font-weight: 700; }
.team-collab-option { display: inline-flex; align-items: flex-start; gap: 8px; border: 1px solid #e7e2dc; border-radius: 999px; padding: 9px 12px; color: #40566b; font-size: 13px; cursor: pointer; }
.team-collab-option input { width: 15px; height: 15px; margin-top: 1px; }
.team-collab-types:disabled { opacity: .58; }
.team-empty, .team-create-card, .team-invite-landing { margin-top: 18px; padding: 24px; }
.team-empty p, .team-create-card p { margin: 0 0 14px; }
.team-invite-landing h3 { margin: 10px 0 8px; color: #182d3c; font-size: clamp(23px, 3vw, 30px); }
.team-invite-landing .row-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.team-invite-landing .row-wrap .btn { flex: 0 0 auto; }
@media (max-width: 700px) {
  .team-up-card { padding: 18px; }
  .team-up-card-head, .team-invites-head { align-items: stretch; flex-direction: column; }
  .team-member-row { align-items: flex-start; flex-wrap: wrap; }
  .team-invite-row { flex-wrap: wrap; }
  .team-invite-row input { flex: 1 0 100%; padding: 7px 3px; }
  .team-invite-state { flex: 1; }
  .dir-team-roster-row { align-items: flex-start; flex-wrap: wrap; }
  .dir-team-roster-row .btn { flex-basis: 100%; }
  .dir-team-roster-row .dir-verified { margin-left: auto; }
  .dir-kind-filter { width: 100%; }
  .dir-kind-filter button { flex: 1; }
}
