/* Local-profile identity controls; preserve the existing Crew Atlas layout and save action. */
.crew-profile-editor #crewPersonalizationFields{grid-column:1/-1;grid-row:1;min-width:0;margin:0;padding:17px 19px 15px;border:1px solid #34536e;border-radius:15px;background:linear-gradient(145deg,#172b40,#111e30);color:#edf7ff}
.crew-profile-editor .crew-personalization legend{padding:0 8px;color:#4dd8f0;font-size:11px;font-weight:700;letter-spacing:.14em}
.crew-profile-editor .crew-personalization h3{margin:1px 0 15px;font-size:19px;letter-spacing:-.02em}
.crew-profile-editor .crew-personalization-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px}
.crew-profile-editor .crew-personalization-grid>label{display:flex;flex-direction:column;min-width:0;gap:7px;font-size:12px;font-weight:620;color:#bdd2e4}
.crew-profile-editor .crew-personalization-grid input:not([type=checkbox]),.crew-profile-editor .crew-personalization-grid select{width:100%;min-width:0;min-height:46px;border:1px solid #446480;border-radius:10px;background:#0d1b2b;color:#f5faff;padding:10px 12px;font:inherit;font-size:15px}
.crew-profile-editor .crew-personalization-grid input:focus-visible,.crew-profile-editor .crew-personalization-grid select:focus-visible{outline:2px solid #47d8f2;outline-offset:2px}
.crew-profile-editor .crew-pilot-rank-fields{margin-top:14px;padding-top:15px;border-top:1px solid #39587577}
.crew-profile-editor .crew-pilot-rank-fields[hidden]{display:none!important}
.crew-profile-editor .crew-personalization-grid .crew-rank-display{display:flex;flex-direction:row;align-items:center;gap:12px;align-self:end;min-height:46px;padding:8px 10px;background:#10283a;border:1px solid #375e73;border-radius:10px;color:#e4f5fb;font-size:13px}
.crew-profile-editor .crew-rank-display input{width:19px;height:19px;accent-color:#40d7f2;flex:none}
.crew-profile-editor .crew-personalization .hint{margin:13px 0 0;font-size:12px;line-height:1.5;color:#acc3d5}
.crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(1),.crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(2){grid-row:2}
.crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(3),.crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(4){grid-row:3}
.crew-profile-editor #crewProfileForm>button{grid-row:4}
.crew-profile-editor #crewAirlineWorkspaceHelp{grid-row:5}
.crew-profile-editor #homeBaseStatus{grid-row:6}
body.light .crew-profile-editor #crewPersonalizationFields{background:#eaf2fa;color:#102840;border-color:#a6bfd6}
body.light .crew-profile-editor .crew-personalization-grid>label,body.light .crew-profile-editor .crew-personalization .hint{color:#335370}
body.light .crew-profile-editor .crew-personalization-grid input:not([type=checkbox]),body.light .crew-profile-editor .crew-personalization-grid select{background:#fff;color:#112b41;border-color:#a3bdcf}
body.light .crew-profile-editor .crew-personalization-grid .crew-rank-display{background:#e1f1f8;color:#102840}
@media(max-width:640px){
 .crew-profile-editor #crewPersonalizationFields{padding:15px}
 .crew-profile-editor .crew-personalization-grid{grid-template-columns:minmax(0,1fr)}
 .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(1){grid-row:2}
 .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(2){grid-row:3}
 .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(3){grid-row:4}
 .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(4){grid-row:5}
 .crew-profile-editor #crewProfileForm>button{grid-row:6}
 .crew-profile-editor #crewAirlineWorkspaceHelp{grid-row:7}
 .crew-profile-editor #homeBaseStatus{grid-row:8}
}

/* B-R1: role-controlled presentation; hiding a field never deletes its local value. */
.crew-profile-editor #crewProfileForm .profile-fields>label[hidden],.crew-profile-editor #crewPilotRatingFields[hidden],.crew-profile-editor #crewPilotRatingChoices[hidden],.crew-profile-editor #crewPilotRatingOther[hidden]{display:none!important}
.crew-profile-editor .crew-pilot-rating-fields{margin-top:16px;padding-top:15px;border-top:1px solid #39587577}
.crew-profile-editor #crewPilotRatingChoices{margin-top:13px}.crew-profile-editor #crewPilotRatingScopeHelp{margin-bottom:12px}
.crew-profile-editor .crew-type-rating-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0 14px}
.crew-profile-editor .crew-type-rating-option{display:flex;align-items:center;gap:9px;min-height:46px;padding:8px 11px;border:1px solid #345c70;border-radius:10px;background:#102739;font-size:13px;color:#e5f6ff;cursor:pointer}
.crew-profile-editor .crew-type-rating-option input{width:18px;height:18px;flex:none;accent-color:#40d7f2}
.crew-profile-editor .crew-operating-fleet-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#bdd2e4}
.crew-profile-editor .crew-operating-fleet-label select{min-height:46px;border:1px solid #446480;border-radius:10px;background:#0d1b2b;color:#f5faff;padding:10px 12px;font-size:14px}
#crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(4){grid-column:2;grid-row:2}
#crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewProfileForm>button{grid-row:3}
#crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewAirlineWorkspaceHelp{grid-row:4}
#crewProfilePanel[data-profession="pilot"] .crew-profile-editor #homeBaseStatus{grid-row:5}
body.light .crew-profile-editor .crew-type-rating-option{background:#e1f1f8;color:#15344b}
@media(max-width:640px){
 .crew-profile-editor .crew-type-rating-list{grid-template-columns:minmax(0,1fr)}
 #crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewProfileForm .profile-fields>label:nth-child(4){grid-column:1;grid-row:3}
 #crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewProfileForm>button{grid-row:4}
 #crewProfilePanel[data-profession="pilot"] .crew-profile-editor #crewAirlineWorkspaceHelp{grid-row:5}
 #crewProfilePanel[data-profession="pilot"] .crew-profile-editor #homeBaseStatus{grid-row:6}
}


/* Phase C: restrained, local onboarding and a compact Home introduction. */
#phaseCOnboarding[hidden],#phaseCHomeIntro[hidden],#phaseCStepOne[hidden],#phaseCStepTwo[hidden],#phaseCPilotDetails[hidden],#phaseCComplete[hidden],#home .cockpit-detail-grid > div[hidden]{display:none!important}
.phasec-onboard{border:1px solid #365a72;border-radius:18px;background:linear-gradient(145deg,#172c43 0%,#0d1b2b 75%);box-shadow:0 14px 38px #03091130;color:#f2f8ff;padding:22px;margin:0 0 20px}
.phasec-onboard-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}
.phasec-kicker{display:block;font-size:11px;letter-spacing:.15em;font-weight:750;color:#47d8f2;text-transform:uppercase}
.phasec-onboard h2,.phasec-home-intro h2{font-size:clamp(22px,3vw,32px);line-height:1.2;letter-spacing:-.03em;margin:7px 0;color:#f5faff}
.phasec-onboard-head p{font-size:14px;line-height:1.5;color:#b7cbdc;margin:4px 0}
.phasec-skip,.phasec-complete{background:transparent;border:1px solid #45667d;border-radius:10px;color:#d3ebf5;padding:10px 13px;min-height:44px;cursor:pointer;font:inherit;font-size:13px;white-space:normal}
.phasec-skip:hover,.phasec-complete:hover{border-color:#47d8f2}
.phasec-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 20px}
.phasec-roles button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;background:#10253a;border:1px solid #3e617a;border-radius:12px;color:#f0f7fb;cursor:pointer;padding:14px 16px;min-height:74px;font:inherit}
.phasec-roles button span{font-size:16px;font-weight:750}
.phasec-roles button small{color:#a6bece;font-size:12px}
.phasec-roles button[aria-pressed=true]{border:2px solid #47d8f2;background:#17394b;padding:13px 15px;box-shadow:inset 0 0 0 1px #47d8f23a}
.phasec-field-label{font-size:12px;font-weight:700;color:#bcd3e3}
.phasec-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px}
.phasec-fields label,.phasec-pilot-details>label:first-child{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;color:#c5d9e7;min-width:0}
.phasec-fields label small,.phasec-pilot-details label small{font-size:11px;color:#91a9bb;font-weight:500}
.phasec-fields input,.phasec-fields select,.phasec-pilot-details select{width:100%;min-width:0;min-height:46px;border:1px solid #446480;border-radius:10px;background:#0b1c2f;color:#f8fcff;padding:10px 12px;font:inherit;font-size:15px}
.phasec-fields input:focus-visible,.phasec-fields select:focus-visible,.phasec-roles button:focus-visible,.phasec-pilot-details select:focus-visible,.phasec-skip:focus-visible,.phasec-complete:focus-visible{outline:2px solid #50def6;outline-offset:3px}
.phasec-pilot-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:12px 15px;border-top:1px solid #35516c;margin-top:17px;padding-top:16px}
.phasec-toggle{display:flex;flex-direction:row;gap:12px;align-items:center;min-height:46px;padding:8px 12px;border:1px solid #345e75;border-radius:10px;font-size:13px;color:#e6f4fa}
.phasec-toggle input{accent-color:#47d8f2;width:20px;height:20px;flex:none}
.phasec-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}
.phasec-actions button{min-height:46px;border-radius:10px;padding:10px 18px;font:inherit;font-weight:650}
.phasec-privacy{margin:9px 0 0;color:#a8c2d1;font-size:12px}
.phasec-preview{display:flex;flex-direction:column;gap:5px;margin-top:18px;padding:15px 17px;background:#10283d;border:1px solid #31546a;border-radius:13px}
.phasec-preview>span{color:#47d8f2;letter-spacing:.13em;font-size:10px;font-weight:750}
.phasec-preview strong{color:#f8fbff;font-size:clamp(20px,2.5vw,27px);line-height:1.2}
.phasec-preview small{color:#b2cad9;font-size:13px}
.phasec-status{min-height:1.2em;margin:9px 0 0;font-size:13px;color:#f2caa5}
.phasec-home-intro{margin:0 0 18px;padding:13px 1px 9px;border-bottom:1px solid #33546b55}
.phasec-intro-main{display:flex;align-items:center;justify-content:space-between;gap:14px}
.phasec-home-intro h2{margin:5px 0;font-size:clamp(23px,3.5vw,34px)}
.phasec-home-intro p{color:#a8c4d5;font-size:13px;margin:5px 0}
.phasec-complete{flex-shrink:0}
body.light .phasec-home-intro h2{color:#183348}
body.light .phasec-home-intro p{color:#45637c}
body.light .phasec-home-intro .phasec-kicker{color:#007f9d}
body.light .phasec-complete{border-color:#7a9caf;color:#1b536d}
@media(max-width:640px){
 .phasec-onboard{padding:17px 15px}
 .phasec-onboard-head{flex-direction:column;gap:9px}
 .phasec-fields,.phasec-pilot-details{grid-template-columns:minmax(0,1fr)}
 .phasec-actions button{flex:1 1 auto}
 .phasec-intro-main{align-items:flex-start;flex-direction:column;gap:10px}
 .phasec-complete{align-self:flex-start}
}
