/* Fase 3 — equipe, multi-negócio e assinatura avançada */
.biz-switch { position: relative; }
.biz-switch > summary { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.biz-switch > summary .avatar { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
.biz-switch > summary .biz-switch__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-switch .dropdown__menu { min-width: 260px; }
.biz-switch__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none !important; color: var(--ink); width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.biz-switch__item:hover { background: var(--surface-2); }
.biz-switch__item.is-current { background: var(--primary-soft); }
.biz-switch__item .avatar { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }
.biz-switch__item small { display: block; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 400; }
.biz-switch__item strong { display: block; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
@media (max-width: 767px) { .biz-switch > summary .biz-switch__name { display: none; } .biz-switch > summary { padding: 3px; border-color: transparent; } }

.team-upsell { border-color: var(--primary-soft); background: linear-gradient(135deg, var(--primary-soft), var(--surface)); }
.team-member .badge { margin-left: 4px; vertical-align: middle; }
.team-roles { display: grid; gap: 8px; }
.team-role { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; align-items: flex-start; }
.team-role input { margin-top: 3px; }
.team-role small { display: block; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.4; }
.team-role:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.team-perms { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.biz-row.is-current { background: var(--primary-soft); }
.invite-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.invite-head__logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; border: 1px solid var(--border); }

/* Assinatura avançada */
.signers { display: grid; gap: 8px; }
.signer-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.signer-row__fields { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; }
.signer-row__fields .input, .signer-row__fields .select { min-height: 40px; }
.signer-row__head { display: flex; gap: 8px; align-items: center; }
.signer-row__head .select { max-width: 160px; }
@media (max-width: 600px) { .signer-row__fields { grid-template-columns: 1fr; } }
.sig-options { display: grid; gap: 8px; margin-top: 8px; }
.sig-level { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; align-items: flex-start; }
.sig-level:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.sig-level small { display: block; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.4; }
.sig-pad { border: 2px dashed var(--border-strong); border-radius: var(--r-md); background: #fff; touch-action: none; width: 100%; height: 180px; display: block; }
.sig-pad.is-dirty { border-style: solid; border-color: var(--brand-color, var(--primary)); }
.sig-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sig-step:last-child { border-bottom: 0; }
.sig-step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-color, var(--primary)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm); flex: none; }
.sig-step__ok { background: var(--success); }
.selfie-preview { width: 120px; height: 120px; border-radius: 12px; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); display: block; }
.selfie-preview[hidden] { display: none; }
.geo-status { font-size: var(--fs-sm); color: var(--ink-2); }
.geo-status.is-ok { color: var(--success); }
.geo-status.is-err { color: var(--danger); }
.signer-list { display: grid; gap: 8px; }
.signer-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); }
.signer-card__thumbs { display: flex; gap: 6px; }
.signer-card__thumbs img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
