.member-view-profile-editor {
  --profile-ink: #211914;
  --profile-paper: #fffaf2;
  --profile-soft: #f1e7d9;
  --profile-accent: #e77831;
  --profile-muted: #74665d;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 7.5rem;
}

.member-view-profile-editor > * {
  min-width: 0;
}

.member-view-profile-editor .secondary-header h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

html:has(.member-view-profile-editor),
body:has(.member-view-profile-editor) {
  max-width: 100%;
  overflow-x: clip;
}

.v45-profile-hero {
  position: relative;
  isolation: isolate;
  min-height: 15.5rem;
  margin: .75rem 1rem 1.1rem;
  padding: 1.45rem 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, .12);
  border-radius: 1.75rem;
  background: var(--profile-ink);
  color: var(--profile-paper);
  box-shadow: 0 1rem 2.5rem rgba(44, 28, 17, .16);
}

.v45-profile-hero::before,
.v45-profile-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 250, 242, .14);
  border-radius: 50%;
}

.v45-profile-hero::before {
  width: 11rem;
  height: 11rem;
  top: -6.5rem;
  right: -2.5rem;
}

.v45-profile-hero::after {
  width: 6.5rem;
  height: 6.5rem;
  right: 1.5rem;
  bottom: -4.5rem;
}

.v45-profile-hero .eyebrow {
  color: #f2aa77;
}

.v45-profile-hero h1 {
  max-width: 11ch;
  margin: .4rem 0 .75rem;
  color: inherit;
  font-size: clamp(2rem, 10vw, 2.75rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.v45-profile-hero > p:not(.eyebrow) {
  max-width: 31ch;
  margin: 0;
  color: rgba(255, 250, 242, .78);
  font-size: .91rem;
  line-height: 1.55;
}

.v45-profile-hero > span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2rem;
  margin-top: 1rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(255, 250, 242, .24);
  border-radius: 999px;
  color: var(--profile-paper);
  font-size: .7rem;
  font-weight: 720;
}

.v45-profile-hero > span i {
  display: inline-flex;
}

.v45-profile-preview {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  margin: 0 1rem 1.1rem;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid rgba(33, 25, 20, .15);
  border-radius: 1.5rem;
  background: #f1a36f;
  color: var(--profile-ink);
  box-shadow: 0 .6rem 1.6rem rgba(68, 39, 21, .12);
}

.v45-profile-avatar {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(33, 25, 20, .2);
  border-radius: 1.05rem;
  background: var(--profile-paper);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
}

.v45-profile-preview .eyebrow,
.v45-profile-preview h2,
.v45-profile-preview p {
  color: inherit;
}

.v45-profile-preview > div:nth-child(2) {
  min-width: 0;
}

.v45-profile-preview .eyebrow {
  margin: 0 0 .2rem;
  font-size: .66rem;
}

.v45-profile-preview h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.v45-profile-preview p:not(.eyebrow) {
  margin: .28rem 0 0;
  font-size: .75rem;
}

.v45-profile-star {
  align-self: start;
  font-size: 1.2rem;
  font-style: normal;
}

.v45-profile-form {
  margin: 0 1rem 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(33, 25, 20, .13);
  border-radius: 1.5rem;
  background: var(--profile-paper);
  box-shadow: 0 .5rem 1.5rem rgba(68, 39, 21, .08);
}

.v45-profile-form .section-heading {
  margin-bottom: 1rem;
}

.v45-profile-form label {
  display: block;
  margin-bottom: .45rem;
  color: var(--profile-ink);
  font-size: .84rem;
  font-weight: 760;
}

.v45-profile-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: .8rem .9rem;
  border: 1.5px solid rgba(33, 25, 20, .34);
  border-radius: 1rem;
  outline: 0;
  background: #fffdf9;
  color: var(--profile-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
}

.v45-profile-form input:hover {
  border-color: rgba(33, 25, 20, .58);
}

.v45-profile-form input:focus-visible {
  border-color: var(--profile-ink);
  box-shadow: 0 0 0 3px rgba(231, 120, 49, .28);
}

.v45-profile-form input[aria-invalid="true"] {
  border-color: var(--danger);
}

.v45-profile-field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .45rem;
  color: var(--profile-muted);
  font-size: .72rem;
  line-height: 1.45;
}

.v45-profile-field-meta p {
  margin: 0;
}

.v45-profile-field-meta p:first-child {
  max-width: 29ch;
}

.v45-profile-error {
  margin: .65rem 0 0;
  color: var(--danger);
  font-size: .78rem;
  font-weight: 760;
}

.v45-profile-actions {
  display: grid;
  gap: .6rem;
  margin-top: 1.15rem;
}

.v45-profile-actions .button {
  min-height: 3rem;
}

.v45-profile-undo {
  display: block;
  min-height: 2.75rem;
  margin: .75rem auto 0;
  padding: .55rem .8rem;
  border: 0;
  border-radius: .8rem;
  background: transparent;
  color: #6b3821;
  font: inherit;
  font-size: .78rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.v45-profile-status {
  min-height: 1.25rem;
  margin: .65rem 0 0;
  color: #5d493e;
  font-size: .75rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.v45-profile-boundary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  margin: 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(33, 25, 20, .12);
  border-radius: 1.25rem;
  background: var(--profile-soft);
}

.v45-profile-boundary > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgba(33, 25, 20, .14);
  border-radius: .85rem;
  background: var(--profile-paper);
}

.v45-profile-boundary p {
  min-width: 0;
  margin: 0;
  color: #66554b;
  font-size: .78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.v45-profile-boundary strong {
  color: var(--profile-ink);
}

@media (max-width: 400px) {
  .v45-profile-hero,
  .v45-profile-preview,
  .v45-profile-form,
  .v45-profile-boundary {
    margin-inline: 8px;
  }

  .v45-profile-preview {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .v45-profile-avatar {
    width: 44px;
    height: 44px;
  }

  .v45-profile-star {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v45-profile-preview {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (forced-colors: active) {
  .v45-profile-hero,
  .v45-profile-preview,
  .v45-profile-form,
  .v45-profile-boundary,
  .v45-profile-avatar,
  .v45-profile-boundary > span {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }

  .v45-profile-hero *,
  .v45-profile-preview *,
  .v45-profile-form *,
  .v45-profile-boundary * {
    color: CanvasText;
  }

  .v45-profile-form input:focus-visible,
  .v45-profile-undo:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }
}
