/* Min profil uses the approved settings shell; these rules stay inside its section. */
#settingsProfileSection .profile-settings-card { max-width: none; }
#settingsProfileSection .profile-settings-card .settings-card-head { align-items: center; margin-bottom: 16px; padding-bottom: 16px; }
#settingsProfileSection .profile-settings-card .settings-card-head > div:nth-child(2) { min-width: 0; }
#settingsProfileSection .personal-profile-avatar {
  display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
  margin-left: auto; border: 1px solid #dce5e9; border-radius: 10px;
  background: #f0f4f5; color: #365b68; font: 600 14px/1 var(--bs-font-family);
  letter-spacing: 0;
}
#settingsProfileSection .personal-profile-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
#settingsProfileSection .personal-profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
#settingsProfileSection .personal-profile-fields label { min-width: 0; gap: 5px; }
#settingsProfileSection .personal-profile-fields label > span:first-child,
#settingsProfileSection .profile-project-switcher > span { color: #405963; font: 600 14px/1.4 var(--bs-font-family); }
#settingsProfileSection .personal-profile-fields input { width: 100%; min-height: 44px; font: 400 15px/1.45 var(--bs-font-family); }
#settingsProfileSection .profile-email-label { grid-column: auto; }
#settingsProfileSection #profileEmail { background: #f5f8f9; color: #334c59; }
#settingsProfileSection :is(.profile-email-label,.profile-airport-label) small,
#settingsProfileSection .profile-project-switcher small { color: #5a7080; font: 400 16px/1.45 var(--bs-font-family); }
#settingsProfileSection .profile-project-switcher {
  display: none; grid-template-columns: minmax(0,1fr) minmax(260px,360px);
  grid-column: 1; align-items: center; gap: 3px 20px; min-width: 0; padding: 12px 14px;
  border: 1px solid #dce5e9; border-radius: 8px; background: #f7f9fa;
}
#settingsProfileSection .profile-project-switcher > span { grid-column: 1; grid-row: 1; }
#settingsProfileSection .profile-project-switcher small { grid-column: 1; grid-row: 2; }
#settingsProfileSection .profile-project-switcher select { grid-column: 2; grid-row: 1 / 3; width: 100%; min-width: 0; min-height: 44px; }
#settingsProfileSection .personal-profile-actions {
  display: flex; justify-content: flex-end; align-items: center; gap: 10px;
  grid-column: auto; margin: 0; padding: 14px 0 0; border-top: 1px solid #dce5e9;
}
#settingsProfileSection .personal-profile-actions button { width: auto; min-width: 112px; padding: 9px 16px; }
#settingsProfileSection .personal-profile-actions .primary-small { min-width: 150px; }
#settingsProfileSection .profile-welcome:not(.hidden) {
  margin: 0 0 16px; padding: 15px 17px; border: 1px solid #d8e7e2;
  border-left: 3px solid #5b9a7d; border-radius: 8px; background: #f4f9f6;
}
#settingsProfileSection .profile-welcome p:first-child { color: #3d6c57; font-size: 14px; font-weight: 600; }
#settingsProfileSection .profile-welcome h2 { margin: 3px 0 5px; font: 600 21px/1.3 var(--bs-font-family); }
#settingsProfileSection .profile-welcome p:last-child { color: #4d6672; font: 400 16px/1.5 var(--bs-font-family); }
#settingsProfileSection .profile-settings-card.needs-name { max-width: none; }
#settingsProfileSection .profile-settings-card.needs-name .settings-card-head { display: flex; }
#settingsProfileSection .profile-settings-card.needs-name .personal-profile-avatar { display: none; }
#settingsProfileSection .profile-settings-card.needs-name .profile-project-switcher,
#settingsProfileSection .profile-settings-card.needs-name #cancelProfileChanges { display: none; }
#settingsProfileSection .profile-settings-card.needs-name .profile-email-label small { display: none; }
#settingsProfileSection .profile-settings-card.needs-name .personal-profile-actions .primary-small { width: auto; min-height: 44px; border-color: #e44338; background: #e44338; color: #fff; font: 600 15px/1.45 var(--bs-font-family); }
#settingsProfileSection .profile-save-feedback:not(.hidden) { margin: 0; padding: 11px 13px; border: 1px solid #e9c2be; border-left: 3px solid #c45149; border-radius: 8px; background: #fff3f1; color: #7d302b; font-size: 15px; }
#settingsProfileSection .profile-save-feedback.success:not(.hidden) { border-color: #c8e3d2; border-left-color: #379063; background: #f1f8f3; color: #285b40; }
#settingsProfileSection .profile-access-card { display: grid !important; grid-template-columns: minmax(0,1fr); justify-content: stretch; align-items: stretch; gap: 16px; }
#settingsProfileSection .profile-section-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
#settingsProfileSection .profile-section-head > div { min-width: 0; }
#settingsProfileSection .profile-section-head h3,
#settingsProfileSection .profile-company-card h3,
#settingsProfileSection .profile-security-card h3 { margin: 0 0 4px; color: #183047; font: 600 18px/1.35 var(--bs-font-family); }
#settingsProfileSection .profile-section-head p,
#settingsProfileSection .profile-company-card > p,
#settingsProfileSection .profile-security-card p { margin: 0; color: #536b79; font: 400 16px/1.5 var(--bs-font-family); }
#settingsProfileSection .profile-access-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
#settingsProfileSection .profile-access-facts > div { min-width: 0; padding: 11px 13px; border: 1px solid #dce5e9; border-radius: 8px; background: #f8fafb; }
#settingsProfileSection .profile-access-facts span,
#settingsProfileSection .profile-access-facts strong { display: block; min-width: 0; overflow-wrap: anywhere; }
#settingsProfileSection .profile-access-facts span { color: #5a7080; font-size: 14px; }
#settingsProfileSection .profile-access-facts strong { margin-top: 4px; color: #183047; font-size: 16px; font-weight: 600; }
#settingsProfileSection .profile-access-note { margin: 0; color: #536b79; font: 400 16px/1.5 var(--bs-font-family); }
#settingsProfileSection .profile-company-card { display: grid; gap: 12px; }
#settingsProfileSection .profile-company-card > p { margin-top: -9px; }
#settingsProfileSection #myCompanyList { gap: 7px; }
#settingsProfileSection #myCompanyList .company-license-row { align-items: center; gap: 12px; padding: 9px 12px; border-radius: 7px; background: #f8fafb; }
#settingsProfileSection #myCompanyList .company-license-row > div { min-width: 0; }
#settingsProfileSection #myCompanyList .company-license-row strong { font-size: 15px; overflow-wrap: anywhere; }
#settingsProfileSection #myCompanyList .company-license-row small { margin-top: 2px; font-size: 14px; }
#settingsProfileSection #myCompanyList .company-license-status { flex: 0 0 auto; font-size: 13px; }
#settingsProfileSection .profile-security-card { align-items: center; gap: 16px; }
#settingsProfileSection .profile-security-card > div { min-width: 0; }
#settingsProfileSection .profile-security-card button { flex: 0 0 auto; }
@media (max-width: 760px) {
  #settingsProfileSection .personal-profile-fields { grid-template-columns: minmax(0,1fr); }
  #settingsProfileSection .profile-email-label { grid-column: auto; }
  #settingsProfileSection .profile-project-switcher { display: grid; grid-template-columns: minmax(0,1fr); gap: 5px; }
  #settingsProfileSection .profile-project-switcher > span,
  #settingsProfileSection .profile-project-switcher small,
  #settingsProfileSection .profile-project-switcher select { grid-column: 1; grid-row: auto; }
  #settingsProfileSection .profile-project-switcher select { grid-row: 2; }
  #settingsProfileSection .profile-project-switcher small { grid-row: 3; }
  #settingsProfileSection .profile-access-facts { grid-template-columns: minmax(0,1fr); }
  #settingsProfileSection .profile-security-card { align-items: stretch; }
}
@media (max-width: 600px) {
  #settingsProfileSection .personal-profile-actions { display: flex; flex-direction: row; justify-content: flex-end; }
  #settingsProfileSection .personal-profile-actions button { min-width: 0; width: auto; }
  #settingsProfileSection .profile-settings-card .settings-card-head { align-items: flex-start; }
  #settingsProfileSection .personal-profile-avatar { flex-basis: 34px; width: 34px; height: 34px; font-size: 12px; }
  #settingsProfileSection #myCompanyList .company-license-row { align-items: flex-start; }
  #settingsProfileSection .profile-settings-card.needs-name .personal-profile-actions .primary-small { width: 100%; }
}
