.profile_masthead {
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background:
    linear-gradient(115deg, rgba(201, 8, 18, .11), transparent 42%),
    rgba(0, 0, 0, .22);
}

.profile_identity_grid,
.profile_workspace {
  display: grid;
  min-width: 0;
}

.profile_identity_grid {
  gap: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.profile_identity_grid > *,
.profile_workspace > * {
  min-width: 0;
}

.profile_portrait {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 139, 155, .45), transparent 19%),
    linear-gradient(145deg, #50101e, #120b11 72%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
}

.profile_portrait::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 16%;
  width: 6.2rem;
  height: 6.2rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  box-shadow: 0 0 50px rgba(255, 255, 255, .08);
}

.profile_portrait::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 17rem;
  height: 17rem;
  transform: translateX(-50%);
  border-radius: 46% 46% 18% 18%;
  background: rgba(255, 255, 255, .14);
}

.profile_portrait_purple {
  background:
    radial-gradient(circle at 50% 28%, rgba(200, 137, 255, .45), transparent 19%),
    linear-gradient(145deg, #36134f, #0f0b13 72%);
}

.profile_portrait_gold {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 197, 104, .44), transparent 19%),
    linear-gradient(145deg, #49320f, #110d09 72%);
}

.profile_portrait_blue {
  background:
    radial-gradient(circle at 50% 28%, rgba(99, 192, 255, .4), transparent 19%),
    linear-gradient(145deg, #0f354c, #090d12 72%);
}

.profile_portrait_rose {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 137, 204, .43), transparent 19%),
    linear-gradient(145deg, #4b1539, #110a11 72%);
}

.profile_portrait_green {
  background:
    radial-gradient(circle at 50% 28%, rgba(116, 228, 184, .35), transparent 19%),
    linear-gradient(145deg, #123b31, #090f0d 72%);
}

.profile_portrait_badge {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(8, 7, 11, .76);
  padding: .42rem .68rem;
  color: rgba(255, 255, 255, .82);
  font-size: .69rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.profile_portrait_caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  line-height: 1.45;
  text-align: center;
}

.profile_portrait_has_image::before,
.profile_portrait_has_image::after {
  display: none;
}

.profile_portrait_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile_portrait_has_image .profile_portrait_caption {
  border-radius: .65rem;
  background: rgba(8, 7, 11, .72);
  padding: .45rem .6rem;
  backdrop-filter: blur(10px);
}

.profile_identity {
  align-self: center;
}

.profile_name_line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.profile_name {
  overflow-wrap: anywhere;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.profile_status_badge {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border: 1px solid rgba(255, 51, 71, .25);
  border-radius: 999px;
  background: rgba(201, 8, 18, .13);
  padding: .3rem .6rem;
  color: #ff9baa;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile_deck {
  max-width: 43rem;
  margin-top: .9rem;
  color: #c8bdc7;
  font-size: 1.05rem;
  line-height: 1.7;
}

.profile_facts {
  display: grid;
  gap: .55rem;
  margin-top: 1.5rem;
}

.profile_fact {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: .75rem;
  font-size: .875rem;
  line-height: 1.5;
}

.profile_fact dt {
  color: rgba(255, 255, 255, .42);
}

.profile_fact dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, .86);
}

.profile_actions {
  display: grid;
  align-content: start;
  gap: .75rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .025);
  padding: 1rem;
}

.provider_site_button {
  grid-column: 1 / -1;
  min-height: 3.5rem;
  border: 1px solid rgba(255, 139, 155, .42);
  background: linear-gradient(135deg, rgba(201, 8, 18, .26), rgba(255, 255, 255, .055));
}

.profile_action_links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .75rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: .8rem;
}

.profile_action_links a {
  color: rgba(255, 255, 255, .38);
  font-size: .7rem;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.profile_action_note {
  color: rgba(255, 255, 255, .42);
  font-size: .7rem;
  line-height: 1.55;
  text-align: center;
}

.profile_tabs_shell {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  background: rgba(8, 7, 11, .92);
  backdrop-filter: blur(18px);
}

.profile_tabs {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  padding-top: .65rem;
  padding-bottom: .65rem;
  scrollbar-width: thin;
}

.profile_tabs .tab_button {
  flex: 0 0 auto;
}

.profile_workspace {
  gap: 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.profile_rail,
.profile_promo,
.profile_panel {
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, .026);
}

.profile_rail,
.profile_promo {
  align-self: start;
  padding: 1rem;
}

.rail_section + .rail_section {
  margin-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1.3rem;
}

.rail_heading {
  color: rgba(255, 255, 255, .47);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rail_value {
  margin-top: .35rem;
  font-family: 'Unbounded', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.avatar_stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .3rem;
  margin-top: .8rem;
}

.mini_avatar {
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .45rem;
  background: linear-gradient(145deg, rgba(255, 51, 71, .42), rgba(255, 255, 255, .06));
}

.mini_avatar:nth-child(2n) { background: linear-gradient(145deg, rgba(177, 94, 255, .4), rgba(255, 255, 255, .05)); }
.mini_avatar:nth-child(3n) { background: linear-gradient(145deg, rgba(255, 191, 86, .4), rgba(255, 255, 255, .05)); }

.rail_list {
  display: grid;
  gap: .7rem;
  margin-top: .8rem;
}

.rail_list li {
  color: rgba(255, 255, 255, .7);
  font-size: .77rem;
  line-height: 1.45;
}

.profile_main {
  min-width: 0;
}

.profile_panel {
  padding: 1.25rem;
}

.profile_panel[hidden] {
  display: none;
}

.profile_panel h2 {
  margin-top: .45rem;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.profile_copy {
  margin-top: 1rem;
  color: #c8bdc7;
  line-height: 1.75;
}

.profile_copy + .profile_copy {
  margin-top: .85rem;
}

.profile_section_heading {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.intent_grid,
.media_grid,
.boundary_grid {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.intent_card,
.boundary_card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: .9rem;
  background: rgba(0, 0, 0, .17);
  padding: 1rem;
}

.intent_card strong,
.boundary_card dt {
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}

.intent_card p,
.boundary_card dd {
  margin-top: .35rem;
  color: rgba(255, 255, 255, .53);
  font-size: .78rem;
  line-height: 1.55;
}

.activity_feed {
  display: grid;
  margin-top: 1rem;
}

.profile_activity_item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .8rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 1rem 0;
}

.activity_icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: .75rem;
  background: rgba(201, 8, 18, .15);
  color: #ff9baa;
  font-size: .72rem;
  font-weight: 900;
}

.activity_copy {
  color: rgba(255, 255, 255, .72);
  font-size: .86rem;
  line-height: 1.6;
}

.activity_meta {
  margin-top: .22rem;
  color: rgba(255, 255, 255, .37);
  font-size: .7rem;
}

.media_tile {
  position: relative;
  min-height: 11rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 139, 155, .3), transparent 30%),
    linear-gradient(145deg, #3a0d1c, #110b13);
}

.media_tile:nth-child(2) {
  background:
    radial-gradient(circle at 72% 26%, rgba(195, 130, 255, .28), transparent 30%),
    linear-gradient(145deg, #25103c, #0d0a13);
}

.media_tile:nth-child(3) {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 190, 85, .27), transparent 30%),
    linear-gradient(145deg, #39250d, #110d0a);
}

.media_tile_copy {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
}

.media_tile_copy strong {
  display: block;
  font-size: .85rem;
}

.media_tile_copy span {
  display: block;
  margin-top: .25rem;
  color: rgba(255, 255, 255, .48);
  font-size: .7rem;
}

.promo_mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: .85rem;
  background: linear-gradient(145deg, #ff3347, #8d0008);
  font-family: 'Unbounded', sans-serif;
  font-size: .68rem;
  font-weight: 800;
  box-shadow: 0 14px 35px rgba(201, 8, 18, .28);
}

.promo_title {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.promo_copy {
  margin-top: .55rem;
  color: rgba(255, 255, 255, .5);
  font-size: .77rem;
  line-height: 1.6;
}

.profile_prototype_notice {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1rem;
  color: rgba(255, 255, 255, .39);
  font-size: .68rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .profile_identity_grid {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .profile_portrait {
    min-height: 17rem;
  }

  .profile_actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .profile_action_links,
  .profile_action_note {
    grid-column: 1 / -1;
  }

  .profile_workspace {
    grid-template-columns: 12rem minmax(0, 1fr);
  }

  .profile_promo {
    grid-column: 1 / -1;
  }

  .profile_panel {
    padding: 1.75rem;
  }

  .intent_grid,
  .boundary_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .profile_identity_grid {
    grid-template-columns: 14rem minmax(0, 1fr) 13rem;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .profile_portrait {
    min-height: 20rem;
  }

  .profile_actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .profile_action_links,
  .profile_action_note {
    grid-column: auto;
  }

  .profile_workspace {
    grid-template-columns: 13rem minmax(0, 1fr) 12rem;
    gap: 1.5rem;
  }

  .profile_rail,
  .profile_promo {
    position: sticky;
    top: 4.7rem;
  }

  .profile_promo {
    grid-column: auto;
  }
}

@media (min-width: 1280px) {
  .profile_workspace {
    grid-template-columns: 14rem minmax(0, 1fr) 13rem;
    gap: 2rem;
  }
}

@media (max-width: 639px) {
  .profile_portrait {
    min-height: 20rem;
  }

  .profile_fact {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .profile_actions .button_primary,
  .profile_actions .button_secondary {
    width: 100%;
  }

  .profile_rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .rail_section + .rail_section {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  .rail_section:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 1rem;
  }
}
