/* === Chips (versión responsive sin medidas absolutas) === */
.chip {
  font-size: 0.9em;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.87);
  background: rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5vh;
  line-height: 5vh;
  border-radius: 2.5vh;
  padding: 0 2vw;
  box-sizing: border-box;
  vertical-align: middle;
  margin: 0.5vh 0;
}

.chip-media {
  width: 5vh;
  height: 5vh;
  margin-left: -2vw;
  vertical-align: top;
  border-radius: 50%;
  text-align: center;
  line-height: 5vh;
  color: #fff;
  flex-shrink: 0;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 50%;
  display: block;
}

.chip-media + .chip-label {
  margin-left: 1vw;
}

.chip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  flex-shrink: 1;
  min-width: 0;
}

.chip-label + .chip-delete {
  margin-left: 0.5vw;
}

.chip-delete {
  margin-right: -1vw;
  width: 3.5vh;
  height: 3.5vh;
  text-align: center;
  line-height: 3.5vh;
  cursor: pointer;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20fill%3D'%23000'%20height%3D'24'%20viewBox%3D'0%200%2024%2024'%20width%3D'24'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202zm5%2013.59L15.59%2017%2012%2013.41%208.41%2017%207%2015.59%2010.59%2012%207%208.41%208.41%207%2012%2010.59%2015.59%207%2017%208.41%2013.41%2012%2017%2015.59z'%2F%3E%3Cpath%20d%3D'M0%200h24v24H0z'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 2vh 2vh;
  opacity: 0.54;
  transition: opacity 0.2s ease;
}

html:not(.watch-active-state) .chip-delete:active,
.chip-delete.active-state {
  opacity: 1;
}

/* === Responsividad adicional === */
@media screen and (max-width: 768px) {
  .chip {
    height: 6vh;
    line-height: 6vh;
    border-radius: 3vh;
    padding: 0 3vw;
  }
  .chip-media {
    width: 6vh;
    height: 6vh;
    line-height: 6vh;
  }
  .chip-delete {
    width: 4vh;
    height: 4vh;
    line-height: 4vh;
  }
}
