.mastery-radar {
  margin-bottom: 14px;
  min-width: 0;
}

.mastery-radar > .meta + .meta {
  margin-top: 3px;
}

.mastery-radar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 14px 0;
}

.mastery-radar__filters label {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: .83rem;
}

.mastery-radar__filters label[hidden] {
  display: none;
}

.mastery-radar__filters select {
  max-width: 100%;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid #9fb6ac;
  border-radius: 6px;
  background: white;
  color: var(--ink);
}

.mastery-radar__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mastery-radar__comparison {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 14px;
}

.mastery-radar__visual {
  min-width: 0;
  border: 1px solid #cbded7;
  border-radius: 9px;
  background: #f0f7f3;
  padding: 9px 12px;
}

.mastery-radar__visual > .meta {
  text-align: center;
  margin: 4px 0 2px;
}

.mastery-radar__plot {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  margin: 0 auto;
}

.mastery-radar__plot text {
  fill: #244e43;
  font-size: 12px;
  font-weight: 750;
}

.mastery-radar__plot .mastery-radar__axis-label {
  font-size: 12px;
  font-weight: 700;
}

.mastery-radar__grid {
  stroke: #92ada2;
  stroke-width: 1;
  fill: none;
}

.mastery-radar__reference {
  stroke: #944b23;
  stroke-width: 1.8;
  stroke-dasharray: 5 3;
  fill: none;
}

.mastery-radar__polygon {
  stroke: #0a6658;
  stroke-width: 2.1;
  stroke-linejoin: round;
  fill: #27867338;
}

.mastery-radar__point {
  fill: #0a6658;
  stroke: white;
  stroke-width: 1.5;
}

.mastery-radar__axis-badge {
  fill: #dfefe6;
  stroke: #a2bbaf;
}

.mastery-radar__key {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #345a4e;
  font-size: .79rem;
}

.mastery-radar__key > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mastery-radar__key-measured::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a6658;
}

.mastery-radar__key-reference::before {
  content: "";
  display: block;
  width: 16px;
  border-top: 2px dashed #944b23;
}

.mastery-radar__bars {
  display: grid;
  gap: 8px;
  padding: 10px 4px 6px;
}

.mastery-radar__bars > div:not(.mastery-radar__scale) {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.mastery-radar__track {
  display: grid;
  align-items: center;
  position: relative;
  min-height: 16px;
}

.mastery-radar__track::after {
  content: "";
  position: absolute;
  left: 60%;
  top: 0;
  height: 100%;
  border-left: 2px dashed #944b23;
}

.mastery-radar__track > meter {
  appearance: none;
  height: 8px;
  width: 100%;
}

.mastery-radar__track > meter::-webkit-meter-bar {
  background: #dcebe3;
  border: 0;
}

.mastery-radar__track > meter::-webkit-meter-optimum-value {
  background: #0a6658;
}

.mastery-radar__track > meter::-moz-meter-bar {
  background: #0a6658;
}

.mastery-radar__unmeasured-track {
  height: 8px;
  border: 1px dashed #809f94;
  border-radius: 5px;
}

.mastery-radar__scale {
  display: grid;
  grid-template-columns: 3fr 2fr;
  position: relative;
  margin-left: 26px;
  font-size: .73rem;
}

.mastery-radar__scale > :nth-child(2) {
  position: absolute;
  left: 60%;
  transform: translateX(-50%);
}

.mastery-radar__scale > :last-child {
  text-align: right;
}

.mastery-radar__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.mastery-radar__table :is(th, td) {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line);
}

.mastery-radar__table tr > :first-child {
  text-align: left;
  overflow-wrap: anywhere;
}

.mastery-radar__table tr > :not(:first-child) {
  text-align: right;
  white-space: nowrap;
}

.mastery-radar__number {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 2px;
  border: 1px solid #a2bbaf;
  border-radius: 50%;
  background: #dfefe6;
  color: #244e43;
  font-size: .74rem;
  font-weight: 750;
}

.mastery-radar__topic {
  color: var(--teal);
  border: 0;
  padding: 3px 0;
  background: none;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .mastery-radar__comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}
