/* Skills sidebar rows: calm icon, aligned actions, delete only turns red when it is being aimed at. */
.wl-skill-row > span:first-child > span {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Delete is out of the way until the row is pointed at or focused; the slot stays reserved so nothing shifts. */
.wl-skill-row > span.shrink-0:not(:first-child) {
  opacity: 0;
  transition: opacity 150ms ease-out;
}
.wl-skill-row:hover > span.shrink-0:not(:first-child),
.wl-skill-row:focus-within > span.shrink-0:not(:first-child),
.wl-skill-row[aria-current='true'] > span.shrink-0:not(:first-child),
.wl-skill-row > span.shrink-0:not(:first-child):has([aria-expanded='true']) {
  opacity: 1;
}
/* Touch screens have no hover, so delete stays visible there. */
@media (hover: none) {
  .wl-skill-row > span.shrink-0:not(:first-child) {
    opacity: 1;
  }
}

/* Rows without a chevron keep delete in the same column as rows with one (24px chevron - 4px margin + 12px gap). */
.wl-skill-row > span.shrink-0:not(:first-child):last-child {
  margin-right: 32px;
}

.wl-skill-row > span.shrink-0:not(:first-child) > button {
  background-color: transparent;
  color: rgb(var(--text-secondary));
}
.wl-skill-row > span.shrink-0:not(:first-child) > button:hover,
.wl-skill-row > span.shrink-0:not(:first-child) > button:focus-visible,
.wl-skill-row > span.shrink-0:not(:first-child) > button[aria-expanded='true'] {
  background-color: rgb(var(--surface-destructive) / 0.12);
  color: rgb(var(--text-destructive));
}

@media (prefers-reduced-motion: reduce) {
  .wl-skill-row > span.shrink-0:not(:first-child) {
    transition: none;
  }
}
