#traceNote {
  margin: 9px 0 0;
}

.schematic-panel .schematic-stage {
  aspect-ratio: 900 / 330;
}

.trace-unavailable {
  position: absolute;
  inset: 40% 0 auto;
  text-align: center;
  color: #a1b5cf;
}

.part-icon {
  display: block;
  margin-top: 8px;
  max-width: 100%;
  height: auto;
  color: var(--cyan, #5ce1ff);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: linear-gradient(145deg, rgba(92, 225, 255, .09), rgba(92, 225, 255, .025));
  border: 1px solid rgba(92, 225, 255, .17);
  border-radius: 8px;
}

.part-icon .outline-fill {
  fill: currentColor;
  fill-opacity: .09;
}

.traced-part .outline-fill {
  fill-opacity: .16;
}

.traced-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.traced-variants .part-icon {
  width: 64px;
  margin-top: 0;
}

.art-source {
  display: block;
  margin-top: 4px;
  color: #a1b5cf;
  font-size: 9px;
}

.weapon-trace .trace-contour,
.weapon-trace .trace-detail {
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.weapon-trace .trace-contour {
  fill: currentColor;
  fill-rule: evenodd;
  fill-opacity: .13;
  stroke-width: 1.3;
}

.weapon-trace .trace-detail {
  fill: none;
  stroke-width: .75;
  opacity: .5;
}

.weapon-outline {
  color: var(--cyan, #5ce1ff);
  pointer-events: none;
}

.weapon-outline .outline-measure {
  fill: none;
  stroke: currentColor;
  stroke-opacity: .34;
  stroke-dasharray: 4 5;
}

.weapon-outline text {
  fill: currentColor;
  fill-opacity: .76;
  font: 10px 'JetBrains Mono', monospace;
  letter-spacing: 2px;
}

.result-weapon-art {
  display: grid;
  justify-items: center;
  margin: 14px 0 18px;
  padding: 4px 12px 9px;
  border: 1px solid rgba(92, 225, 255, .17);
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(92, 225, 255, .09), rgba(4, 10, 16, .48) 75%);
}

.result-weapon-art .weapon-trace {
  display: block;
  width: 100%;
  height: clamp(76px, 19vw, 156px);
}

.goal .result-weapon-art .weapon-trace {
  height: clamp(72px, 15vw, 108px);
}

.result-weapon-art figcaption {
  font-size: .75rem;
  color: #a1b5cf;
}

.result-loadout {
  margin: 16px 0;
}

.result-loadout-label {
  font-size: .875rem;
  font-weight: 600;
  color: #c3d8ea;
}

.result-part-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 9px;
  list-style: none;
  padding: 0;
  margin: 9px 0 0;
}

.result-loadout.is-compact .result-part-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-part {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(92, 225, 255, .14);
  border-radius: 9px;
  background: rgba(92, 225, 255, .04);
}

.result-part.is-empty {
  background: transparent;
  border-color: rgba(161, 181, 207, .15);
}

.result-part-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-part-text span,
.result-part-text small {
  display: block;
  font-size: .75rem;
  color: #a1b5cf;
}

.result-part-text b {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  line-height: 1.28;
  color: #edf5ff;
}

.result-part.is-empty b {
  font-weight: 500;
  color: #a1b5cf;
}

.result-part-art {
  flex: 0 0 65px;
  min-width: 0;
}

.result-part-art .part-icon {
  width: 100%;
  margin: 0;
}

.result-part-art .traced-variants {
  display: grid;
  gap: 3px;
  margin: 0;
}

.is-compact .result-part {
  padding: 8px;
}

.is-compact .result-part-text b {
  font-size: .875rem;
}

.is-compact .result-part-art {
  flex-basis: 47px;
}

@media (max-width: 540px) {
  .is-compact .result-part {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .is-compact .result-part-art {
    flex-basis: auto;
    width: 48px;
  }
}

@media (max-width: 600px) {
  #partNodes .dot {
    width: 23px;
    height: 23px;
  }
}
