.emy-customer-composed-shell .emy-customer-shell-surface {
  grid-column: 1;
  align-self: start;
  min-width: 0;
  width: 100%;
}

.emy-customer-composed-shell .emy-contained-page {
  display: block;
  min-width: 0;
  min-height: 0 !important;
  margin: 0;
  background: transparent !important;
}

.emy-customer-composed-shell .emy-contained-profile {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 10px 0 118px;
  container-name: emy-profile;
  container-type: inline-size;
}

.emy-customer-composed-shell .emy-contained-profile .profile-dashboard {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.emy-customer-composed-shell .emy-contained-profile .profile-menu {
  position: relative;
  top: auto;
  order: 1;
}

.emy-customer-composed-shell .emy-contained-profile .profile-account-grid {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  order: 2;
}

.emy-customer-composed-shell .emy-contained-chat > .chat-workspace {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 10px 0 112px !important;
}

.emy-customer-composed-shell .emy-contained-chat .chat-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

@container emy-profile (min-width: 900px) {
  .emy-customer-composed-shell .emy-contained-profile .profile-dashboard {
    grid-template-columns: minmax(238px, 260px) minmax(0, 1fr);
    gap: 24px;
  }
}

@container emy-profile (min-width: 641px) and (max-width: 899px) {
  .emy-customer-composed-shell .emy-contained-profile .profile-menu-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container emy-profile (max-width: 640px) {
  .emy-customer-composed-shell .emy-contained-profile .profile-hero {
    border-radius: 16px;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-hero .cover {
    height: 96px;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-main {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 0;
    margin-top: -44px;
    padding: 0 16px 16px;
    text-align: center;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-photo {
    width: 92px;
    height: 92px;
    font-size: 27px;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-info {
    width: 100%;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-info::before {
    margin-top: 10px;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-info h1 {
    font-size: 23px;
    white-space: normal;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-info p {
    font-size: 12.5px;
    white-space: normal;
  }

  .emy-customer-composed-shell .emy-contained-profile .actions {
    justify-content: center;
    margin-left: 0;
    padding: 0 12px 16px;
  }

  .emy-customer-composed-shell .emy-contained-profile .panel {
    padding: 16px;
    border-radius: 15px;
  }

  .emy-customer-composed-shell .emy-contained-profile .detail-group-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emy-customer-composed-shell .emy-contained-profile .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .emy-customer-composed-shell .emy-contained-profile .panel-action {
    width: 100%;
  }

  .emy-customer-composed-shell .emy-contained-profile .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-social-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-social-row input[data-profile-social-url] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .emy-customer-composed-shell .emy-contained-profile .profile-visible-toggle {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 819px) {
  .emy-customer-composed-shell .emy-contained-profile,
  .emy-customer-composed-shell .emy-contained-chat > .chat-workspace {
    padding-top: 4px;
    margin-top: 4px !important;
  }
}
