.bb-user-avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;overflow:hidden;border-radius:50%;background:var(--green-soft,#e9f3eb);color:var(--green,#197154);font-weight:700;vertical-align:middle}
.bb-user-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.bb-user-avatar-large{width:96px;height:96px;flex-basis:96px;font-size:2rem;margin-bottom:16px}
.bb-account-form{display:grid;gap:16px;min-width:0}
.bb-account-form .field{margin:0;min-width:0}
.bb-account-form input[type=file]{box-sizing:border-box;width:100%;max-width:100%;font:inherit;padding:12px;line-height:1.5;white-space:normal}
.bb-account-form input[type=file]::file-selector-button{max-width:100%;white-space:normal;margin:0 10px 4px 0;font:inherit;border:1px solid #cbd9cd;border-radius:8px;padding:8px;background:#f5f8f3;color:#203c31;cursor:pointer}
.bb-account-help{margin:0;line-height:1.6;overflow-wrap:anywhere}
.bb-account-form>button{justify-self:start;max-width:100%;white-space:normal}
.bb-member-actions{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:12px}
.bb-member-actions form{max-width:100%}
.bb-member-actions .button{height:auto;min-height:44px;white-space:normal;text-align:center}
.bb-profile-grid .panel h3,.bb-profile-grid .panel p,.bb-invite-card p{overflow-wrap:anywhere}
.bb-invite-card{min-width:0;max-width:100%}
.bb-pending-invite{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid #e2e9e0}
.bb-pending-invite>div{min-width:0;overflow-wrap:anywhere}
.bb-pending-invite span,.bb-pending-invite small{display:block}
.bb-team-note{margin:0 0 24px;line-height:1.6}
@media(max-width:640px){.topbar-right>.bb-user-avatar{display:none}.bb-member-actions{flex-direction:column;align-items:stretch}.bb-member-actions form,.bb-member-actions .button{width:100%}.bb-account-form input[type=file]{font-size:14px}.bb-invite-card .button{width:100%}}

/* Company members: consistent cards at all widths (not generic form panels). */
.workspace .bb-team-note{
  padding:13px 16px;margin:0 0 22px;border:1px solid #dce9e2;border-radius:12px;
  background:#f4faf7;color:#526e61;font-size:13px;line-height:1.6;
}
.workspace .bb-team-heading{font-size:clamp(21px,2vw,25px);line-height:1.3;margin:20px 0 15px;color:var(--ink)}
.workspace .bb-profile-grid.bb-team-members{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:26px;width:100%;
}
.workspace .bb-team-members .bb-member-card{
  display:flex;flex-direction:column;gap:0;padding:20px 22px;min-width:0;min-height:0;
  border:1px solid #dce6dc;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(17,57,41,.035);
}
.workspace .bb-member-header{display:flex;gap:14px;align-items:center;min-width:0}
.workspace .bb-member-header .bb-user-avatar{
  height:52px;width:52px;flex:0 0 52px;font-size:20px;background:#e4eff5;color:#27617c;
}
.workspace .bb-member-identity{min-width:0;flex:1}
.workspace .bb-member-identity h3{
  font-size:17px;line-height:1.35;letter-spacing:-.3px;color:var(--ink);font-weight:750;
  margin:0 0 4px;overflow-wrap:anywhere;
}
.workspace .bb-member-identity p{margin:0;color:#6e8077;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.workspace .bb-member-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:16px 0 0;padding:14px 0 0;border-top:1px solid #edf1ee}
.workspace .bb-member-role,.workspace .bb-member-status{
  display:inline-flex;align-items:center;min-height:27px;border-radius:100px;padding:4px 10px;
  font-size:11px;font-weight:650;line-height:1.35;
}
.workspace .bb-member-role{background:#edf3fa;color:#315f8b}
.workspace .bb-member-status.bb-status-active{background:#e8f5ed;color:#1d7549}
.workspace .bb-member-status.bb-status-inactive{background:#f0f1f3;color:#636e79}
.workspace .bb-member-card form{min-width:0;max-width:100%;margin:14px 0 0}
.workspace .bb-member-card .member-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.workspace .bb-member-card .member-form .field{flex:1 1 145px;margin:0}
.workspace .bb-member-card .member-form .check-field{margin:0 0 8px;min-height:30px}
.workspace .bb-member-card .member-form .button{margin-bottom:1px}
.workspace .bb-member-card .bb-member-actions{margin-top:12px}
.workspace .bb-member-card .bb-member-actions form{margin:0}
.workspace .bb-team-pending{margin-top:0;overflow:hidden;padding:0;border-radius:16px}
.workspace .bb-team-pending-head{padding:19px 22px;border-bottom:1px solid #edf1ed}
.workspace .bb-team-pending-head h2{margin:0;font-size:18px;line-height:1.35}
.workspace .bb-team-pending-body{padding:0 22px}
.workspace .bb-team-empty{padding:18px 0;margin:0!important;font-size:13px;color:#708078}
.workspace .bb-team-pending .bb-pending-invite{padding:16px 0;gap:14px;min-width:0}
.workspace .bb-team-pending .bb-pending-invite:last-child{border-bottom:0}
.workspace .bb-team-pending .bb-pending-invite strong{font-size:13px;overflow-wrap:anywhere}
.workspace .bb-team-pending .bb-pending-invite small{margin-top:4px;color:#718277}
/* Profile photo uploader lives inside Settings > Your account. */
.workspace .bb-photo-settings{margin-top:24px;padding-top:20px;border-top:1px solid #e7ece8;min-width:0}
.workspace .bb-photo-settings h3{font-size:17px;margin:0 0 15px;color:var(--ink)}
.workspace .bb-photo-settings-layout{display:flex;align-items:flex-start;gap:20px;min-width:0}
.workspace .bb-photo-settings-layout>.bb-user-avatar-large{
  width:82px;height:82px;flex:0 0 82px;margin:1px 0 0;font-size:29px;
  border:3px solid #fff;box-shadow:0 0 0 1px #d7e3df;background:#e4eff5;color:#27617c;
}
.workspace .bb-photo-settings-fields{min-width:0;flex:1}
.workspace .bb-photo-form{gap:12px}
.workspace .bb-photo-form .field{margin:0}
.workspace .bb-photo-form .field>span{font-size:13px}
.workspace .bb-photo-form .check-field{margin:0}
.workspace .bb-photo-form .button{max-width:100%;white-space:normal;text-align:center}
@media(max-width:760px){
 .workspace .bb-profile-grid.bb-team-members{grid-template-columns:minmax(0,1fr)!important;gap:12px}
 .workspace .bb-team-members .bb-member-card{padding:17px 16px}
 .workspace .bb-team-pending-head{padding:17px 16px}
 .workspace .bb-team-pending-body{padding:0 16px}
 .workspace .bb-team-note{font-size:12px;padding:12px}
 .workspace .bb-member-identity h3{font-size:16px}
 .workspace .bb-member-meta{margin-top:13px;padding-top:13px}
}
@media(max-width:400px){
 .workspace .bb-photo-settings-layout{flex-direction:column;gap:12px}
 .workspace .bb-member-header .bb-user-avatar{width:46px;height:46px;flex-basis:46px}
 .workspace .bb-member-card .member-form{flex-direction:column;align-items:stretch}
 .workspace .bb-member-card .member-form .field{width:100%;flex-basis:auto}
}

/* Self-contained, accessible progress for Settings > Profile photo. */
.workspace .bb-avatar-loader{display:grid;gap:13px;min-width:0}
.workspace .bb-photo-progress{display:grid;gap:8px;padding:12px 14px;border:1px solid #d5e5e1;border-radius:12px;background:#f5fbf9;min-width:0}
.workspace .bb-photo-progress[hidden],.workspace .bb-photo-error[hidden]{display:none!important}
.workspace .bb-photo-progress-line{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;color:#235e55;font-size:13px;line-height:1.4}
.workspace .bb-photo-progress-line strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.workspace .bb-photo-progress progress{display:block;width:100%;height:12px;max-width:100%;border:0;border-radius:100px;overflow:hidden;accent-color:#197b6a;background:#dcebe6}
.workspace .bb-photo-progress progress::-webkit-progress-bar{background:#dcebe6;border-radius:100px}
.workspace .bb-photo-progress progress::-webkit-progress-value{background:#197b6a;border-radius:100px;transition:width .18s ease}
.workspace .bb-photo-progress progress::-moz-progress-bar{background:#197b6a;border-radius:100px}
.workspace .bb-photo-file-info{margin:0;min-height:0;overflow-wrap:anywhere;color:#607469;font-size:12px;line-height:1.5}
.workspace .bb-photo-file-info:empty{display:none}
.workspace .bb-photo-error{margin:0;color:#ab3131;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.workspace .bb-photo-form[aria-busy="true"] button[type=submit]{opacity:.74;cursor:wait}
