body.profile-page .profile-contact-screen {
  min-height: 100%;
  padding: 24px 16px 112px;
  background: #f7f8f5;
  color: #213629;
}

body.profile-page .profile-contact-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

body.profile-page .profile-contact-back {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 1px solid #d9e1d7;
  border-radius: 8px;
  background: #ffffff;
  color: #244a33;
  font: inherit;
  font-size: 28px;
  line-height: 1;
}

body.profile-page .profile-contact-back:focus-visible,
body.profile-page .profile-contact-tabs button:focus-visible {
  outline: 3px solid rgba(64, 182, 108, 0.32);
  outline-offset: 2px;
}

body.profile-page .profile-contact-header h1 {
  margin: 4px 0 4px;
  color: #183623;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

body.profile-page .profile-contact-header p {
  margin: 0;
  color: #627166;
  font-size: 14px;
  line-height: 1.5;
}

body.profile-page .profile-contact-tabs {
  display: flex;
  gap: 24px;
  max-width: 720px;
  margin: 24px auto 0;
  border-bottom: 1px solid #dce4db;
}

body.profile-page .profile-contact-tabs button {
  position: relative;
  min-height: 40px;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #647267;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

body.profile-page .profile-contact-tabs button[aria-current="page"] {
  color: #1d623c;
}

body.profile-page .profile-contact-tabs button[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #2d7a4e;
  content: "";
}

body.profile-page .profile-contact-tabs span {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  place-items: center;
  border-radius: 8px;
  background: #dc3a37;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

body.profile-page .profile-contact-body {
  max-width: 720px;
  margin: 20px auto 0;
}

body.profile-page .profile-inbox-screen > .current-listening-card,
body.profile-page .profile-service-screen > .current-listening-card {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  width: min(720px, calc(100% - 32px)) !important;
  max-width: 720px !important;
  margin: 20px auto 16px !important;
  transform: none !important;
}

@media (min-width: 481px) and (max-height: 920px) {
  body.profile-page .profile-contact-screen {
    padding-top: 16px;
  }

  body.profile-page .profile-contact-tabs {
    margin-top: 18px;
  }

  body.profile-page .profile-contact-body {
    margin-top: 14px;
  }

  body.profile-page .profile-service-screen .profile-thread-timeline {
    gap: 10px;
    padding: 12px 0;
  }

  body.profile-page .profile-service-screen .profile-support-composer {
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
  }

  body.profile-page .profile-service-screen .profile-support-composer textarea {
    height: 92px;
    min-height: 92px;
  }
}

@media (max-width: 480px) {
  body.profile-page .profile-contact-screen {
    padding: 20px 14px 104px;
  }

  body.profile-page .profile-contact-tabs {
    gap: 20px;
  }

  body.profile-page .profile-service-screen .profile-thread-timeline {
    gap: 8px;
    padding: 12px 0;
  }

  body.profile-page .profile-service-screen .profile-thread-bubble {
    padding: 8px 10px;
  }

  body.profile-page .profile-service-screen .profile-support-composer {
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  body.profile-page .profile-service-screen .profile-support-composer label {
    gap: 4px;
  }

  body.profile-page .profile-service-screen .profile-support-composer textarea {
    height: 68px;
    min-height: 68px;
  }
}
