#prototype {
  opacity: 1;
  transition: opacity var(--spd-insp) ease;
}

#prototype.loading {
  opacity: 0.25;
  * {
    pointer-events: none !important;
  }
}

.prototype-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  justify-content: space-between;
}

.object-material {
  margin: 0;
  height: var(--scene-object-height);
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.33em;
  padding-left: 0.5em;
}

.object-materials {
  padding-left: 1.25em;
}

.object-material {
  font-style: italic;
  color: #b1b1b1;
  cursor: alias;
}

.object-material > .object-label {
  font-weight: 700 !important;
}

.object-material .icon {
  color: #ff2f00;
}
.object-material .icon.secondary {
  color: #787878;
}

/* ---- Materials ---- */

#scene-materials {
  display: flex;
  flex-direction: column;
  gap: 0.125em;
}
.scene-material {
  border-radius: 0.25em;
  overflow: hidden;
  background-color: var(--c-bright-bg);
  border: 0.0625em solid var(--c-bright-bg);
  box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--spd-insp) ease;
}

.scene-material.modified {
  border-color: var(--power-secondary-color);
}

#root.dragging.library-drag-material .scene-material.droppable {
  border-style: dashed;
  border-color: var(--power-secondary-color);
}

#root.dragging.library-drag-material .scene-material.droppable:hover {
  border-color: var(--power-primary-color);
}

.scene-material-content {
  overflow: hidden;
  padding: 0.75em;
  background: var(--background-main);
  display: flex;
  flex-direction: column;
  gap: 0.25em;
}

.scene-material-header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.25em 0.5em;
  font-size: 0.9em;
  font-weight: 600;
}

.material-toggle {
  display: flex;
  align-items: center;
  gap: 0.35em;
  flex: 1;
  min-width: 0;
  padding: 0.25em 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.material-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.modified .scene-material-header {
  color: var(--power-primary-color);
}

.overridenmat-reset {
  padding: 0.15em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.1em;
  aspect-ratio: 1;
  background-color: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.overridenmat-reset .icon {
  font-size: 1em;
}
.scene-material-content .smart-control {
  grid-template-columns: minmax(10ch, 1fr) minmax(var(--input-width), auto);
}

.highlightinscene {
  color: var(--text-primary);
  background: transparent;
}
.object-material .highlightinscene {
  padding-left: 1em;
}

.scene-material-header .highlightinscene {
  color: var(--power-primary-color);
  font-size: 1em;
  padding: 0.1em;
  border: 0;
  cursor: alias;
}
