.professional-profile-page {
  --profile-navy: var(--portal-navy, #14213d);
  --profile-teal: var(--portal-teal, #087f8c);
  --profile-ink: #1c2738;
  --profile-muted: #667085;
  --profile-line: #dce3e9;
  --profile-soft: #f5f8f9;
  color: var(--profile-ink);
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.professional-profile-page *,
.professional-profile-page *::before,
.professional-profile-page *::after { box-sizing: border-box; }

.profile-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 8px 0 26px;
  border-bottom: 1px solid var(--profile-line);
  margin-bottom: 28px;
}

.profile-page-header h1 {
  margin: 0 0 7px;
  color: var(--profile-navy);
  font: 700 2rem/1.15 Manrope, sans-serif;
  letter-spacing: 0;
}

.profile-page-header p,
.profile-card-heading p,
.profile-review-share-card > p {
  margin: 0;
  color: var(--profile-muted);
  font-size: .94rem;
  line-height: 1.55;
}

.profile-strength { width: min(330px, 100%); }
.profile-strength > div:first-child { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.profile-strength strong { color: var(--profile-navy); font: 700 .83rem/1.2 Manrope, sans-serif; }
.profile-strength #profileStrengthText { color: var(--profile-teal); font-weight: 800; }
.profile-strength-track { height: 8px; overflow: hidden; border-radius: 4px; background: #dce8e9; }
.profile-strength-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--profile-teal); transition: width .3s ease; }
.profile-strength > p { margin: 7px 0 0; color: var(--profile-muted); font-size: .76rem; }

.profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.profile-editor-column,
.profile-right-column,
.profile-secondary-column { display: grid; gap: 20px; min-width: 0; }
.profile-right-column { position: sticky; top: 94px; }

.profile-editor-card,
.profile-side-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(28, 39, 56, .045);
}

.profile-editor-card { padding: 25px; }
.profile-side-card { padding: 22px; }

.profile-card-heading {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid #edf0f2;
  margin-bottom: 20px;
}

.profile-card-heading h2,
.profile-form-section h2,
.profile-side-heading h2 {
  margin: 0 0 5px;
  color: var(--profile-navy);
  font: 700 1rem/1.35 Manrope, sans-serif;
  letter-spacing: 0;
}

.profile-card-heading h2 span { color: var(--profile-muted); font-weight: 500; }
.profile-outline-button,
.profile-primary-button {
  min-height: 42px;
  border-radius: 6px;
  padding: 9px 15px;
  border: 1px solid var(--profile-teal);
  font: 700 .82rem/1.2 Manrope, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.profile-outline-button { background: #fff; color: var(--profile-teal); }
.profile-outline-button:hover { background: #edf8f8; }
.profile-primary-button { color: #fff; background: var(--profile-navy); border-color: var(--profile-navy); }
.profile-primary-button:hover { background: #233453; border-color: #233453; }
.profile-primary-button:disabled,
.profile-outline-button:disabled { cursor: not-allowed; opacity: .6; }
.profile-outline-button .material-icons { font-size: 19px; }

.profile-image-content { display: flex; align-items: center; gap: 17px; }
.profile-edit-avatar,
.profile-preview-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #e7eff0;
  color: var(--profile-navy);
  font: 800 1.35rem/1 Manrope, sans-serif;
}
.profile-edit-avatar { width: 76px; height: 76px; }
.profile-preview-avatar { width: 70px; height: 70px; }
.profile-edit-avatar img,
.profile-preview-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-image-content strong,
.profile-image-content span { display: block; }
.profile-image-content strong { margin-bottom: 5px; color: var(--profile-navy); font-size: .89rem; }
.profile-image-content span { color: var(--profile-muted); font-size: .8rem; }

.profile-document-list { display: grid; gap: 9px; }
.profile-document-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--profile-line);
  border-radius: 6px;
  color: var(--profile-ink);
  text-decoration: none;
}
.profile-document-row > .material-icons:first-child { color: var(--profile-teal); font-size: 22px; }
.profile-document-row > .material-icons:last-child { color: var(--profile-muted); font-size: 18px; }
.profile-document-row span span,
.profile-document-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-document-row strong { font-size: .84rem; }
.profile-document-row span span { margin-top: 3px; color: var(--profile-muted); font-size: .72rem; }

.profile-upload-empty {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--profile-muted);
  border: 1px dashed #cbd5dc;
  border-radius: 6px;
  font-size: .84rem;
}
.profile-upload-empty .material-icons { color: #93a4ad; font-size: 21px; }

.profile-portfolio-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.profile-portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #e9eef1;
}
.profile-portfolio-item img,
.profile-portfolio-item video { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-media-type { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: #fff; font-size: 34px; filter: drop-shadow(0 1px 5px #000); }
.profile-portfolio-empty { grid-column: 1 / -1; }

.profile-business-form { padding-bottom: 21px; }
.profile-form-section { position: relative; min-width: 0; }
.profile-form-section + .profile-form-section { margin-top: 27px; padding-top: 25px; border-top: 1px solid #edf0f2; }
.profile-form-section > h2 { margin-bottom: 17px; }
.profile-field-heading { display: flex; justify-content: space-between; gap: 20px; }
.profile-field-heading span { color: var(--profile-muted); font-size: .75rem; }
.profile-business-form label,
.profile-form-section > label { color: #344054; font-size: .8rem; font-weight: 700; }
.profile-business-form input,
.profile-business-form select,
.profile-business-form textarea,
.profile-review-link input {
  width: 100%;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  background: #fff;
  color: var(--profile-ink);
  font: 500 .86rem/1.35 "DM Sans", sans-serif;
  letter-spacing: 0;
}
.profile-business-form input,
.profile-business-form select { min-height: 45px; padding: 10px 12px; margin-top: 7px; }
.profile-business-form textarea { resize: vertical; min-height: 142px; padding: 12px; margin-top: 7px; }
.profile-business-form input:focus,
.profile-business-form select:focus,
.profile-business-form textarea:focus,
.profile-review-link input:focus { outline: 3px solid rgba(8, 127, 140, .13); border-color: var(--profile-teal); }
.profile-business-form input[readonly] { color: #667085; background: #f4f6f7; cursor: not-allowed; }
.profile-business-form small { display: block; margin-top: 6px; color: var(--profile-muted); font-size: .72rem; font-weight: 400; line-height: 1.45; }
.profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.profile-input-with-icon { position: relative; }
.profile-input-with-icon .material-icons { position: absolute; left: 11px; top: 19px; color: #87949e; font-size: 19px; pointer-events: none; }
.profile-input-with-icon input { padding-left: 36px; }

.profile-services-control { margin-top: 7px; padding: 7px 9px; border: 1px solid #cfd8df; border-radius: 6px; background: #fff; }
.profile-services-control:focus-within { outline: 3px solid rgba(8, 127, 140, .13); border-color: var(--profile-teal); }
.profile-services-control input { min-height: 30px; padding: 3px; margin: 0; border: 0; outline: 0; }
.profile-service-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-service-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px 6px 9px; border-radius: 5px; background: #e7f3f3; color: #12636b; font-size: .76rem; font-weight: 700; }
.profile-service-chip button { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.profile-service-chip .material-icons { font-size: 15px; }
.profile-service-suggestions { display: grid; position: absolute; z-index: 5; width: min(440px, calc(100% - 50px)); max-height: 210px; overflow: auto; border: 1px solid var(--profile-line); border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(28, 39, 56, .14); }
.profile-service-suggestions button { padding: 10px 13px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; text-align: left; color: var(--profile-ink); cursor: pointer; }
.profile-service-suggestions button:hover { background: var(--profile-soft); }
.profile-coverage-grid { margin-top: 19px; }

.profile-save-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px 16px; margin-top: 27px; padding-top: 21px; border-top: 1px solid #edf0f2; }
.profile-save-row > span { grid-column: 1 / -1; color: var(--profile-muted); font-size: .74rem; }
.profile-inline-status { margin: 11px 0 0; color: var(--profile-muted); font-size: .78rem; line-height: 1.4; }
.profile-inline-status.is-success { color: #14704e; }
.profile-inline-status.is-error { color: #b42318; }
.profile-save-row .profile-inline-status { margin: 0; }

.profile-side-heading { padding-bottom: 15px; border-bottom: 1px solid #edf0f2; margin-bottom: 18px; }
.profile-side-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.profile-side-heading .material-icons { color: var(--profile-teal); font-size: 19px; }
.profile-preview-identity { display: flex; align-items: center; gap: 13px; }
.profile-preview-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.profile-preview-name-row strong { color: var(--profile-navy); font: 700 .95rem/1.3 Manrope, sans-serif; overflow-wrap: anywhere; }
.profile-preview-identity > div > span { display: block; margin-top: 5px; color: var(--profile-muted); font-size: .75rem; }
.profile-verified-badge { margin: 0 !important; padding: 3px 6px; border-radius: 4px; background: #e6f5ef; color: #14704e !important; font-size: .61rem !important; font-weight: 800; text-transform: uppercase; }
.profile-preview-rating { display: flex; align-items: center; gap: 8px; margin: 17px 0 12px; }
.profile-preview-rating > span { color: #df9b18; font-size: .9rem; }
.profile-preview-rating strong { color: var(--profile-muted); font-size: .73rem; }
.profile-preview-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 4; -webkit-box-orient: vertical; margin: 0 0 15px; color: #485668; font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.profile-preview-services { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.profile-preview-services li { display: flex; align-items: flex-start; gap: 7px; color: #344054; font-size: .76rem; overflow-wrap: anywhere; }
.profile-preview-services .material-icons { color: var(--profile-teal); font-size: 16px; }
.profile-preview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 20px; border: 1px solid var(--profile-line); border-radius: 6px; overflow: hidden; background: var(--profile-line); }
.profile-preview-stats div { padding: 12px 8px; background: var(--profile-soft); text-align: center; }
.profile-preview-stats strong,
.profile-preview-stats span { display: block; }
.profile-preview-stats strong { color: var(--profile-navy); font: 800 .95rem/1.2 Manrope, sans-serif; }
.profile-preview-stats span { margin-top: 3px; color: var(--profile-muted); font-size: .66rem; }

.profile-review-share-card > p { margin-bottom: 15px; }
.profile-review-link { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
.profile-review-link input { min-width: 0; height: 42px; padding: 9px 10px; border-radius: 6px 0 0 6px; background: var(--profile-soft); font-size: .72rem; }
.profile-review-link button { display: grid; place-items: center; border: 1px solid #cfd8df; border-left: 0; border-radius: 0 6px 6px 0; background: #fff; color: var(--profile-teal); cursor: pointer; }
.profile-review-link .material-icons { font-size: 18px; }
.profile-side-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 11px; }
.profile-side-actions button { padding-inline: 8px; white-space: normal; }
.profile-reviews-empty { margin: 0; color: var(--profile-muted); font-size: .8rem; line-height: 1.55; }
.profile-review-preview + .profile-review-preview { margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0f2; }
.profile-review-preview > div { display: flex; justify-content: space-between; gap: 10px; }
.profile-review-preview strong { color: var(--profile-navy); font-size: .8rem; }
.profile-review-preview > div span { color: #df9b18; font-size: .75rem; }
.profile-review-preview p { margin: 7px 0 5px; color: #485668; font-size: .76rem; line-height: 1.5; overflow-wrap: anywhere; }
.profile-review-preview > span { color: var(--profile-muted); font-size: .68rem; }

.profile-load-state { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.profile-load-state > .material-icons { color: var(--profile-teal, #087f8c); font-size: 36px; }
.profile-load-state h2 { margin: 15px 0 5px; color: var(--profile-navy, #14213d); font: 700 1.2rem/1.3 Manrope, sans-serif; }
.profile-load-state p { margin: 0 0 18px; color: #667085; font-size: .86rem; }
.profile-loading-skeleton { width: min(680px, 100%); height: 150px; margin-top: 16px; border-radius: 8px; background: linear-gradient(90deg, #edf1f3 25%, #f8fafb 50%, #edf1f3 75%); background-size: 200% 100%; animation: profile-loading 1.3s infinite; }
@keyframes profile-loading { to { background-position: -200% 0; } }

@media (max-width: 1180px) {
  .profile-workspace { grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 20px; }
  .profile-portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .profile-page-header { align-items: flex-start; }
  .profile-workspace { grid-template-columns: minmax(0, 1fr); }
  .profile-right-column { position: static; }
  .profile-preview-card { order: -1; }
}

@media (max-width: 620px) {
  .professional-profile-page { padding-bottom: 24px; }
  .profile-page-header { display: grid; gap: 19px; padding-bottom: 21px; margin-bottom: 18px; }
  .profile-page-header h1 { font-size: 1.55rem; }
  .profile-strength { width: 100%; }
  .profile-editor-card,
  .profile-side-card { padding: 18px; }
  .profile-card-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .profile-card-heading > div { min-width: 0; }
  .profile-card-heading h2,
  .profile-card-heading p { overflow-wrap: anywhere; }
  .profile-card-heading .profile-outline-button { width: 100%; white-space: normal; }
  .profile-form-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-save-row { grid-template-columns: minmax(0, 1fr); }
  .profile-save-row .profile-primary-button { width: 100%; }
  .profile-save-row > span { grid-column: auto; }
}

@media (max-width: 360px) {
  .profile-editor-card,
  .profile-side-card { padding: 15px; }
  .profile-image-content { align-items: flex-start; }
  .profile-edit-avatar { width: 62px; height: 62px; }
  .profile-side-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-strength-track span { transition: none; }
  .profile-loading-skeleton { animation: none; }
}
