/* Profile hub and Freelancer directory, production 2026-10-26.
   Scoped visual updates preserve database access and original forms. */
:root{--cx-editor-bg:#121b2b;--cx-editor-field:#0d1524;--cx-editor-stroke:#43516b;--cx-editor-accent:#cda6e3;--cx-editor-text:#f2f4fb;--cx-editor-muted:#afbdd0}
#view-logada .crm-workbar>.crm-text-button:not(#crmMenuToggle){
 border:1px solid #43516b!important;
 border-radius:10px!important;
 background:#101827!important;
 padding:0 14px!important;
 font-family:inherit!important;
 font-size:12px!important;
 font-weight:600!important;
}
#view-logada .crm-workbar>.crm-text-button:not(#crmMenuToggle):hover{background:#1a2538!important;border-color:#9576b2!important}
#view-logada .crm-workbar>.crm-text-button:not(#crmMenuToggle):focus-visible{outline:2px solid #cda6e3!important;outline-offset:2px!important}
body #profileModalOverlay{padding:20px!important;box-sizing:border-box!important;align-items:center!important;justify-content:center!important;background:rgba(5,10,19,.75)!important;z-index:10100!important}
body #profileModalOverlay .crm-profile-modal{
 background:var(--cx-editor-bg)!important;
 color:var(--cx-editor-text)!important;
 width:min(760px,100%)!important;
 max-width:760px!important;
 border:1px solid #40516a!important;
 border-radius:16px!important;
 padding:clamp(20px,3vw,30px)!important;
 margin:auto!important;
 box-shadow:0 24px 70px #0009!important;
 max-height:calc(100dvh - 36px)!important;
 overflow-y:auto!important;
 box-sizing:border-box!important;
}
body #profileModalOverlay .crm-profile-modal-head{margin-bottom:18px!important;padding-bottom:14px!important;border-bottom:1px solid #33425b!important}
body #profileModalOverlay .crm-profile-modal-head h2{font-size:clamp(21px,2vw,26px)!important;line-height:1.25!important;color:var(--cx-editor-text)!important}
body #profileModalOverlay .crm-profile-modal :is(h3,strong,label){color:var(--cx-editor-text)!important}
body #profileModalOverlay .crm-profile-modal :is(p,small,.crm-profile-field-help){color:var(--cx-editor-muted)!important;line-height:1.5!important}
body #profileModalOverlay .crm-profile-modal .crm-eyebrow{font-size:10px!important;letter-spacing:.07em!important;color:var(--cx-editor-accent)!important}
body #profileModalOverlay .crm-profile-modal :is(.ev-ifield,textarea,select,input[type=text],input[type=url],input[type=tel]){
 background:var(--cx-editor-field)!important;
 border:1px solid var(--cx-editor-stroke)!important;
 border-radius:9px!important;
 color:var(--cx-editor-text)!important;
 min-height:40px!important;
 width:100%!important;
 max-width:100%!important;
 box-sizing:border-box!important;
 padding:10px 12px!important;
 font:inherit!important;
 font-size:13px!important;
}
body #profileModalOverlay .crm-profile-modal textarea{min-height:90px!important}
body #profileModalOverlay .crm-profile-modal .crm-profile-step-title{margin:20px 0 16px!important;gap:12px!important}
body #profileModalOverlay .crm-profile-modal :is(.crm-profile-chips label,.crm-directory-visibility,.crm-profile-preview){
 border:1px solid #37485f!important;background:#182438!important;border-radius:10px!important;color:#f2f4fb!important
}
body #profileModalOverlay .crm-profile-modal :is(.crm-button,.crm-profile-close,.cx-profile-action){
 min-height:40px!important;box-sizing:border-box!important;
 background:#222d42!important;border:1px solid #71518d!important;
 border-radius:9px!important;color:#e3caef!important;padding:9px 14px!important;
 font-size:12px!important;font-weight:650!important;
}
body #profileModalOverlay .crm-profile-modal :is(.crm-button,.cx-profile-action):hover{background:#302744!important;border-color:#aa81c6!important}
body #profileModalOverlay .crm-profile-modal :is(button,input,select,textarea):focus-visible{outline:2px solid #cda6e3!important;outline-offset:2px!important}
#profileModalOverlay .cx-profile-tabs{
 display:flex;flex-wrap:wrap;gap:7px;
 padding:0 0 12px;margin:0 0 16px;
 border-bottom:1px solid #37465c;
}
#profileModalOverlay .cx-profile-tab{
 appearance:none;background:transparent;border:1px solid #40516a;
 border-radius:9px;color:#bbc7d8;min-height:40px;
 font-size:12px;font-weight:600;padding:9px 14px;cursor:pointer
}
#profileModalOverlay .cx-profile-tab.is-active{color:#eacbf5!important;border-color:#9460b1!important;background:#2b233e!important}
#profileModalOverlay .cx-profile-tab-panel{padding:12px 0 30px;min-height:180px;max-width:100%}
#profileModalOverlay .cx-profile-tab-panel[hidden]{display:none!important}
#profileModalOverlay .cx-profile-tab-panel h3{margin:0 0 10px!important;font-size:18px!important}
#profileModalOverlay .cx-profile-tab-panel p{margin:0 0 18px!important;font-size:13px!important}
#profileModalOverlay .cx-profile-tab-panel .cx-profile-action{margin:0 8px 8px 0!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers{min-width:0}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers>section{max-width:100%!important;min-width:0!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .section-head{margin:0!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .section-desc{margin:6px 0 15px!important;max-width:66ch}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .crm-freelancer-subnav{
 margin:0 0 14px!important;padding:0 0 12px!important;gap:8px!important;
 border-bottom:1px solid #35435b!important;
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .crm-freelancer-tab{
 background:transparent!important;border:1px solid #40516a!important;border-radius:9px!important;min-height:38px!important;font-size:12px!important;padding:9px 14px!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .crm-freelancer-tab.is-active{background:#2c2441!important;border-color:#9169ae!important;color:#e4c8ee!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .ev-header-row{
 display:flex!important;justify-content:flex-end!important;margin:0 0 14px!important;align-items:center!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers #btnOpenFreelancerModal{
 min-height:40px!important;padding:9px 15px!important;
 border-radius:9px!important;background:#332349!important;
 color:#f0d9fd!important;border:1px solid #9a6fbc!important;
 font-size:12px!important;font-weight:650!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .search-bar{
 display:grid!important;grid-template-columns:1fr!important;
 gap:11px!important;padding:0!important;margin:0 0 20px!important;
 background:transparent!important;box-shadow:none!important;border:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .search-input{
 min-height:44px!important;background:#111a2a!important;border:1px solid #43516a!important;border-radius:10px!important;padding:11px 13px!important;width:100%!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .filter-bar{
 display:flex!important;flex-wrap:wrap!important;align-items:end!important;
 gap:10px!important;padding:12px 15px!important;
 background:#172133!important;border:1px solid #39485f!important;
 border-radius:11px!important;margin:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .filter-bar .filter-field{flex:1 1 180px!important;max-width:360px!important;min-width:0!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerCount{margin-left:auto!important;font-size:12px!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerResults .result-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:16px!important;align-items:stretch!important;margin:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerResults .pro-card{
 display:flex!important;flex-direction:column!important;
 min-width:0!important;max-width:100%!important;height:auto!important;
 padding:18px!important;border:1px solid #3d4d65!important;
 border-radius:13px!important;background:#171f30!important;box-shadow:none!important;
 gap:12px!important;overflow-wrap:anywhere!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-head{
 display:flex!important;gap:11px!important;align-items:center!important;
 min-height:45px!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-head>div:last-child{flex:1;min-width:0}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-head h3{font-size:14px!important;line-height:1.3!important;overflow-wrap:anywhere!important;margin:0 0 5px!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-body{
 flex:1!important;min-width:0!important;max-width:100%!important;margin:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-body p{
 font-size:12px!important;line-height:1.6!important;color:#c2cede!important;
 margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-card .pro-footer{
 display:flex!important;flex:0 0 auto!important;flex-wrap:wrap!important;
 align-items:center!important;justify-content:flex-start!important;
 gap:8px!important;margin-top:auto!important;padding-top:14px!important;
 border-top:1px solid #36445a!important;
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-footer :is(.p-btn,button,a){
 min-height:34px!important;font-size:11px!important;
 padding:7px 10px!important;border-radius:8px!important;
 box-shadow:none!important;max-width:100%!important;white-space:normal!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-footer .crm-review-box{
 width:100%!important;flex:1 1 100%!important;
 border-top:1px solid #334056!important;padding-top:10px!important;
 margin:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .pro-footer :is(.crm-review-actions,.crm-review-box details){
 width:100%!important;min-width:0!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .cx-freelancer-mine{border-color:#9170b1!important}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers .cx-freelancer-edit{
 display:inline-flex!important;align-items:center!important;
 background:#30233e!important;color:#eed4fa!important;border:1px solid #8a63ae!important
}
:is(#view-logada,#crmPublicWorkspace) #pageFreelancers details{
 border-color:#3e4e63!important;border-radius:10px!important
}
@media(max-width:1150px){
 :is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerResults .result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
 :is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerResults .result-grid{grid-template-columns:minmax(0,1fr)!important}
 :is(#view-logada,#crmPublicWorkspace) #pageFreelancers #freelancerCount{margin-left:0!important}
 body #profileModalOverlay{padding:9px!important}
 body #profileModalOverlay .crm-profile-modal{padding:17px!important;max-height:calc(100dvh - 18px)!important}
 #profileModalOverlay .cx-profile-tab{flex:1 1 auto!important}
}

/* Follow-on editors share the same palette, even when opened from a hub tab. */
body #flEditOverlay,body #crmMatchResumeOverlay{
 background:rgba(5,10,19,.74)!important;padding:12px!important;box-sizing:border-box!important
}
body #flEditOverlay .ev-modal-box,
body #crmMatchResumeOverlay .ev-modal-box{
 background:#121b2b!important;color:#edf1f8!important;
 border:1px solid #43516a!important;border-radius:14px!important;
 box-shadow:0 24px 60px #0008!important;
 max-width:min(760px,100%)!important;box-sizing:border-box!important;
 max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;
 padding:clamp(18px,2.5vw,26px)!important
}
body #flEditOverlay .ev-modal-box :is(h2,h3,label),
body #crmMatchResumeOverlay .ev-modal-box :is(h2,h3,label){
 color:#f2f4fb!important
}
body #flEditOverlay .ev-modal-box :is(input:not([type=checkbox]),select,textarea),
body #crmMatchResumeOverlay .ev-modal-box :is(input:not([type=checkbox]),select,textarea){
 min-height:40px!important;max-width:100%!important;box-sizing:border-box!important;
 background:#0d1524!important;border:1px solid #43516b!important;
 color:#edf1f8!important;border-radius:9px!important;
 padding:10px 12px!important;font-size:13px!important
}
body #flEditOverlay .ev-modal-box :is(.ev-modal-btn-save,.ev-modal-btn-cancel),
body #crmMatchResumeOverlay .ev-modal-box button{
 min-height:40px!important;border-radius:9px!important;
 font-size:12px!important;padding:9px 14px!important
}
body #flEditOverlay .ev-modal-box :is(p,small),
body #crmMatchResumeOverlay .ev-modal-box p{
 color:#b3c1d3!important
}


/* Match résumé: private editorial controls, same lilac identity as member profile.
 * Overrides the legacy inline orange chip style and cramped uppercase labels. */
body #crmMatchResumeOverlay .ev-modal-box{
 max-width:min(760px,calc(100vw - 24px))!important;
 width:100%!important;
 padding:clamp(16px,3vw,26px)!important;
}
body #crmMatchResumeOverlay .ev-modal-box :is(.ev-ilabel,label){
 font-size:12px!important;
 line-height:1.5!important;
 text-transform:none!important;
 letter-spacing:normal!important;
 overflow-wrap:anywhere!important;
}
body #crmMatchResumeOverlay .ev-modal-box :is(p,small){
 font-size:12px!important;
 line-height:1.6!important;
 text-transform:none!important;
 letter-spacing:normal!important;
}
body #crmMatchResumeOverlay .crm-match-chip,
body #crmMatchResumeOverlay .crm-match-chip:not(.is-selected){
 background:#1c263a!important;
 color:#d2d9e9!important;
 border:1px solid #52617b!important;
 font-size:12px!important;font-weight:600!important;line-height:1.35!important;font-family:inherit!important;
 border-radius:9px!important;
 padding:8px 11px!important;
 min-height:38px!important;
 white-space:normal!important;
 text-align:left!important;
}
body #crmMatchResumeOverlay .crm-match-chip.is-selected{
 background:#342545!important;
 border:1px solid #b48bd2!important;
 color:#f2ddfc!important;
}
body #crmMatchResumeOverlay .crm-match-chip:focus-visible{
 outline:2px solid #dbc1f1!important;
 outline-offset:2px!important;
}
body #crmMatchResumeOverlay .crm-match-chip-group{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:flex-start!important;
 gap:7px!important;
}
body #crmMatchResumeOverlay #crmMatchResumeForm>.ev-ilabel{display:block!important}
body #crmMatchResumeOverlay #crmMatchResumeForm textarea[name=cv]{
 min-height:220px!important;
 resize:vertical!important;
}
body #crmMatchResumeOverlay .cx-resume-import{
 margin:12px 0 18px!important;
 padding:15px!important;
 background:#192538!important;
 border:1px solid #52617b!important;
 border-radius:12px!important;
 color:#e7eaf3!important;
}
body #crmMatchResumeOverlay .cx-resume-import label{
 display:block!important;
 font-size:13px!important;
 font-weight:650!important;
 margin:0 0 10px!important;
 color:#f2e5fb!important;
}
body #crmMatchResumeOverlay .cx-resume-import input[type=file]{
 display:block!important;
 width:100%!important;
 max-width:100%!important;
 min-height:43px!important;
 padding:9px!important;
 box-sizing:border-box!important;
 border:1px solid #60708a!important;
 border-radius:8px!important;
 background:#111a2c!important;
 color:#e9e4f1!important;
 font:inherit!important;
}
body #crmMatchResumeOverlay .cx-resume-import input[type=file]::file-selector-button{
 background:#392b50!important;
 color:#f2dafa!important;
 border:1px solid #aa86c8!important;
 border-radius:7px!important;
 padding:7px 10px!important;
 margin-right:8px!important;
}
body #crmMatchResumeOverlay .cx-resume-import .cx-resume-import-actions{
 margin-top:12px!important;
 display:flex!important;
 flex-wrap:wrap!important;
 gap:9px!important;
}
body #crmMatchResumeOverlay .cx-resume-import .cx-resume-import-actions button{
 border:1px solid #ab82cd!important;
 border-radius:9px!important;
 background:#372448!important;
 color:#f4e3ff!important;
 min-height:40px!important;
 padding:8px 12px!important;
 font-size:12px!important;font-weight:600!important;line-height:1.4!important;font-family:inherit!important;
}
body #crmMatchResumeOverlay .cx-resume-import .cx-resume-import-actions button:disabled{
 opacity:.45!important;cursor:not-allowed!important;
}
body #crmMatchResumeOverlay .cx-resume-import p{
 margin:6px 0 0!important;
 color:#b8c6d9!important;
 font-size:12px!important;
 line-height:1.6!important;
}
body #crmMatchResumeOverlay .cx-resume-import [role=status]{color:#ddc1f4!important}
@media(max-width:600px){
 body #crmMatchResumeOverlay .ev-modal-box{padding:16px!important}
 body #crmMatchResumeOverlay #crmMatchResumeForm>div[style*="grid-template-columns:1fr 1fr"]{
  grid-template-columns:minmax(0,1fr)!important;
 }
 body #crmMatchResumeOverlay .cx-resume-import{padding:12px!important}
 body #crmMatchResumeOverlay .ev-modal-box :is(input,textarea,select){font-size:14px!important}
}

body #crmMatchResumeOverlay .cx-resume-import-preview{
 color:#f1eafa!important;background:#0b1424!important;border:1px solid #40526d!important;
 border-radius:9px!important;line-height:1.6!important;max-height:210px!important;overflow:auto!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;padding:12px!important;
 font:400 12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace!important;
}
body #crmMatchResumeOverlay .cx-resume-import details summary{
 color:#dfc4ef!important;cursor:pointer!important;padding:9px 0!important;
}

/* Saved onboarding choices belong in Edit Profile, never a second home card. */
#profileModalOverlay .cx-profile-moment-summary{padding:12px 14px;border:1px solid #40516a;border-radius:9px;background:#162236;line-height:1.65;overflow-wrap:anywhere}
#profileModalOverlay .cx-profile-moment-opportunity{display:flex;align-items:center;gap:10px;margin:16px 0;color:#f2f4fb;font-size:13px}
#profileModalOverlay .cx-profile-moment-opportunity input{accent-color:#965ac3;min-width:17px;min-height:17px}
