.coach-profile-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px;
  margin-bottom: 18px;
  background: linear-gradient(
    120deg,
    var(--palette-102033, #102033),
    var(--palette-244363, #244363)
  );
  color: #f5f8ff;
  border: 1px solid #426184;
  border-radius: var(--ui-radius);
}
.coach-profile-hero h2 {
  margin-top: 8px;
  font-size: 26px;
  overflow-wrap: anywhere;
}
.coach-portrait {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--ui-radius);
  border: 2px solid #6b8aa9;
  flex-shrink: 0;
}
.coach-initials {
  display: grid;
  place-items: center;
  background: var(--palette-294766, #294766);
  color: white;
  font-size: 32px;
  font-weight: 800;
}
.coach-profile-body,
.coach-referral {
  padding: 24px;
  margin-bottom: 18px;
}
.account-panel .coach-profile-body {
  padding: 0;
}
.coach-profile-body h3:not(:first-child) {
  margin-top: 26px;
}
.coach-profile-body p,
.coach-referral p,
.coach-join p {
  margin-block: 12px 18px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.coach-specialties,
.coach-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.coach-specialties span {
  padding: 9px 12px;
  border-radius: var(--ui-radius);
  background: #e8eff7;
  color: #263e58;
  font-size: 13px;
  font-weight: 600;
}
.coach-contact .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.coach-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.coach-social-links .btn,
.coach-social-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--white);
  color: var(--ink);
}
.coach-social-links .icon {
  width: 18px;
  height: 18px;
}
.coach-photo-field {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.coach-photo-field input {
  padding: 10px;
}
.coach-photo-field .btn {
  justify-self: start;
}
.client-profile-panel > .panel-heading {
  flex-wrap: nowrap;
}
.client-profile-panel {
  max-width: 850px;
}
.client-profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
}
.client-profile-summary > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.client-profile-summary h3,
.client-profile-summary p {
  margin: 0;
}
.client-profile-summary p {
  margin-top: 8px;
}
.client-profile-panel .account-form > .fine-print {
  margin-bottom: 0;
}
.profile-photo-cropper {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}
.profile-photo-cropper[hidden] {
  display: none;
}
.profile-photo-cropper h3,
.profile-photo-cropper .fine-print {
  margin: 0;
}
.profile-photo-cropper h3 {
  font-size: 15px;
}
.profile-photo-cropper .fine-print {
  line-height: 1.6;
}
.profile-photo-crop-stage {
  position: relative;
  width: 100%;
  max-width: 320px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  overflow: hidden;
  background: var(--white);
}
.profile-photo-crop-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 0.5px),
      #ffffff80 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #ffffff80 66.666%,
      transparent calc(66.666% + 0.5px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(33.333% - 0.5px),
      #ffffff80 33.333%,
      transparent calc(33.333% + 0.5px),
      transparent calc(66.666% - 0.5px),
      #ffffff80 66.666%,
      transparent calc(66.666% + 0.5px)
    );
}
.profile-photo-crop-stage canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
}
.profile-photo-crop-stage canvas:active {
  cursor: grabbing;
}
.profile-photo-crop-stage:focus-within {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.profile-photo-zoom-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-photo-zoom-heading output {
  margin-left: auto;
  font-size: 12px;
}
.profile-photo-zoom-heading .text-link {
  padding: 4px;
  min-height: 32px;
  font-size: 12px;
}
.profile-photo-cropper input[type='range'] {
  padding: 0;
  margin: 0;
  min-height: 32px;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--navy);
}
.profile-photo-cropper input[type='range']:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.profile-photo-cropper [data-crop-status]:empty {
  display: none;
}
.profile-photo-crop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-photo-crop-actions .btn {
  flex: 1;
  min-width: 0;
}
.coach-profile-help {
  position: relative;
  min-height: 36px;
}
.coach-profile-help > h3 {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding-right: 40px;
  margin-bottom: 0;
}
.coach-profile-help .booking-rules-help > summary {
  top: 0;
  right: 0;
}
#coach-profile-form[data-inline-profile] .coach-specialty-picker > summary {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}
#coach-profile-form .coach-photo-field {
  gap: 12px;
  margin-bottom: 16px;
}
.coach-photo-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.coach-profile-intro .coach-portrait {
  width: 72px;
  height: 72px;
  border-radius: var(--ui-radius);
  font-size: 24px;
}
.coach-profile-intro .coach-photo-upload {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  min-height: 72px;
  padding: 0;
  border: 0;
  border-radius: var(--ui-radius);
  background: transparent;
  box-shadow: none;
}
.coach-photo-upload-icon {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  pointer-events: none;
}
.coach-photo-upload-icon .icon {
  width: 16px;
  height: 16px;
}
.coach-photo-details {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}
.coach-photo-details > strong {
  font-size: 16px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.coach-profile-intro .coach-photo-details .btn {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}
#coach-profile-form input[type='file'][hidden] {
  display: none;
}
#coach-profile-form [data-profile-directory-fields][hidden],
#coach-profile-form [data-profile-directory-actions][hidden],
#coach-profile-form [data-profile-invitation-actions][hidden],
#coach-profile-form [data-profile-save-status][hidden] {
  display: none;
}
#coach-profile-form > label,
#coach-profile-form .coach-specialty-field {
  margin-bottom: 14px;
}
#coach-profile-form > label + label {
  margin-top: 0;
}
#coach-profile-form .coach-specialty-field legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
#coach-profile-form .coach-specialty-field > .fine-print {
  margin: 0 0 6px;
}
#coach-profile-form .sharing-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block: 16px;
}
#coach-profile-form .sharing-toggle input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--palette-245a91, #245a91);
}
#coach-profile-form .sharing-toggle span {
  min-width: 0;
}
#coach-profile-form .sharing-toggle strong {
  display: block;
  line-height: 1.5;
}
#coach-profile-form .sharing-toggle small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
}
.coach-profile-intro {
  margin-bottom: 16px;
}
.coach-profile-section-heading {
  margin-bottom: 12px;
}
.coach-profile-section-heading > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.coach-profile-section-heading h3 > .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted);
}
.coach-profile-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 14px;
}
.coach-profile-fields > label {
  margin: 0 0 14px;
}
.coach-contact-input {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.coach-contact-input > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
#coach-profile-form .coach-contact-input > input {
  margin: 0;
}
#coach-profile-form .coach-profile-location {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
#coach-profile-form .coach-profile-location > label {
  min-width: 0;
  margin: 0;
}
#coach-profile-form .coach-profile-fields > .sharing-toggle {
  margin: 0 0 14px;
  align-items: center;
}
#coach-profile-form .coach-profile-fields .sharing-toggle strong {
  font-size: 12px;
  font-weight: 600;
}
#coach-profile-form .coach-profile-fields .sharing-toggle small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.coach-profile-fields .coach-contact {
  margin: 0 0 14px;
  gap: 8px;
}
.coach-profile-fields .coach-contact .btn {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}
.coach-profile-intro .coach-photo-details {
  flex: 1;
  gap: 8px;
}
.coach-profile-intro #practice-name-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 6px;
  width: 100%;
  padding: 0;
  margin: 0;
}
.coach-profile-intro #practice-name-form > label {
  margin: 0;
  font-size: 11px;
}
.coach-profile-intro #practice-name-form > label input {
  margin-top: 6px;
}
.coach-profile-intro #practice-name-form > .form-error {
  grid-column: 1 / -1;
  grid-row: 2;
}
#coach-profile-form .coach-photo-field:has(.profile-photo-cropper[hidden]) {
  margin-bottom: 0;
}
.coach-profile-intro #practice-name-form .form-error:empty,
#coach-profile-form > .form-error:empty {
  display: none;
}
.coach-profile-intro .coach-photo-identity {
  align-items: center;
}
#coach-profile-form textarea[name='directoryOnlineOffer'] {
  min-height: 68px;
  height: 68px;
}
.coach-specialty-menu > .fine-print {
  margin: 0 0 10px;
}
.coach-public {
  max-width: 640px;
  padding: 20px;
}
.coach-public .coach-profile-body {
  border: 0;
  padding: 8px;
}
.coach-join {
  padding: 20px 8px 0;
  border-top: 1px solid #cbd5e1;
}
.coach-join form label {
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .coach-profile-hero {
    padding: 20px;
    gap: 16px;
  }
  .coach-portrait {
    width: 76px;
    height: 76px;
  }
  .coach-profile-hero h2 {
    font-size: 22px;
  }
  .coach-profile-hero > div {
    min-width: 0;
  }
  .coach-profile-body,
  .coach-referral {
    padding: 20px;
  }
}
.coach-specialty-field {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.coach-specialty-field legend {
  padding: 0;
  font-weight: 700;
}
.coach-specialty-field > .fine-print {
  margin: 6px 0 10px;
}
.coach-specialty-picker {
  border: 1px solid var(--line);
  border-radius: var(--ui-radius);
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}
.coach-specialty-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-weight: 600;
}
.coach-specialty-picker summary::-webkit-details-marker {
  display: none;
}
.coach-specialty-picker summary > span[aria-hidden] {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  font-size: 0;
  margin-right: 4px;
}
.coach-specialty-picker[open] summary {
  border-bottom: 1px solid var(--line);
}
.coach-specialty-picker[open] summary > span[aria-hidden] {
  transform: translateY(2px) rotate(225deg);
}
.coach-specialty-picker summary > .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transform: rotate(90deg);
}
.coach-specialty-picker[open] summary > .icon {
  transform: rotate(-90deg);
}
.coach-specialty-menu {
  padding: 12px;
}
.coach-specialty-menu > input {
  margin: 0 0 10px;
  width: 100%;
}
.coach-specialty-options {
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#coach-profile-form .coach-specialty-options label,
#coach-profile-form .coach-specialty-other {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 9px 6px;
  font-weight: 500;
  cursor: pointer;
}
#coach-profile-form .coach-specialty-field input[type='checkbox'] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  accent-color: var(--navy);
}
#coach-profile-form .coach-specialty-other {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  font-weight: 700;
}
#coach-profile-form .coach-specialty-custom {
  margin-top: 14px;
}
#coach-profile-form .coach-specialty-field [hidden] {
  display: none;
}
