.skill-matrix-scroll {
  max-height: 75vh;
  overflow: auto;
  padding: 0 1.5rem 1.5rem;
}

.skill-matrix-table {
  border-collapse: separate;
  border-spacing: 3px;
  margin-right: 8rem;
  font-variant-numeric: tabular-nums;
}
.skill-matrix-table thead th {
  height: 9rem;
  position: relative;
  padding: 0;
  vertical-align: bottom;
}
.skill-matrix-table tbody th,
.skill-matrix-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: right;
  padding: 0 0.75rem 0 0;
  vertical-align: middle;
  white-space: nowrap;
  font-weight: 500;
}

.skill-matrix-corner {
  position: sticky;
  left: 0;
  z-index: 3;
}

.skill-matrix-asset-header {
  min-width: 2.75rem;
}
.skill-matrix-asset-header .skill-matrix-asset-label {
  position: absolute;
  bottom: 0.375rem;
  left: 50%;
  display: flex;
  align-items: center;
  max-width: 10.5rem;
  transform: rotate(-45deg);
  transform-origin: left center;
  font-size: 0.8125rem;
  font-weight: 500;
}
.skill-matrix-asset-header .skill-matrix-asset-label a {
  color: inherit;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skill-matrix-asset-header .skill-matrix-asset-label a:hover {
  text-decoration: underline;
}

.skill-matrix-flag {
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  margin-left: 0.35rem;
}

.skill-matrix-holder a {
  color: inherit;
}
.skill-matrix-holder a:hover {
  text-decoration: underline;
}

.skill-matrix-cell {
  padding: 0;
}

.skill-matrix-cell-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.5rem;
  border-radius: 0.3125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.skill-matrix-coverage {
  text-align: center;
  padding-top: 0.5rem;
  vertical-align: top;
}
.skill-matrix-coverage .skill-matrix-ratio {
  display: block;
  font-size: 0.6875rem;
  margin-top: 0.2rem;
}

.skill-matrix-legend .skill-matrix-swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.1875rem;
  flex: none;
}

.light-style .skill-matrix-table .skill-matrix-corner,
.light-style .skill-matrix-table tbody th,
.light-style .skill-matrix-table tfoot th {
  background-color: #fff;
}
.light-style .skill-matrix-flag {
  background-color: #ff4c51;
}
.light-style .skill-matrix-level-0 {
  background-color: #f8f7fa;
  color: #acaab1;
  font-weight: 400;
}
.light-style .skill-matrix-level-0.skill-matrix-swatch {
  border: 1px dashed #e6e6e8;
}
.light-style .skill-matrix-level-1 {
  background-color: #d8d4fb;
  color: #5148a8;
}
.light-style .skill-matrix-level-2 {
  background-color: #9288f3;
  color: #fff;
}
.light-style .skill-matrix-level-3 {
  background-color: #6359ce;
  color: #fff;
}
.light-style .skill-matrix-cell-link:hover,
.light-style .skill-matrix-cell-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.5);
}
.light-style .skill-matrix-coverage .skill-matrix-ratio {
  color: #acaab1;
}

.dark-style .skill-matrix-table .skill-matrix-corner,
.dark-style .skill-matrix-table tbody th,
.dark-style .skill-matrix-table tfoot th {
  background-color: #2f3349;
}
.dark-style .skill-matrix-flag {
  background-color: #ff4c51;
}
.dark-style .skill-matrix-level-0 {
  background-color: #36385a;
  color: #76778e;
  font-weight: 400;
}
.dark-style .skill-matrix-level-0.skill-matrix-swatch {
  border: 1px dashed #44485e;
}
.dark-style .skill-matrix-level-1 {
  background-color: #474583;
  color: #cecafa;
}
.dark-style .skill-matrix-level-2 {
  background-color: #7367f0;
  color: #fff;
}
.dark-style .skill-matrix-level-3 {
  background-color: #aea7f6;
  color: #2f3349;
}
.dark-style .skill-matrix-cell-link:hover,
.dark-style .skill-matrix-cell-link:focus-visible {
  box-shadow: 0 0 0 2px rgba(115, 103, 240, 0.5);
}
.dark-style .skill-matrix-coverage .skill-matrix-ratio {
  color: #76778e;
}
