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

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

.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: 2px 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);
}

.scene-material.highlight {
  animation: mat-highlight 1200ms ease;
}

#root.dragging.library-drag-material .scene-material {
  border: 2px dashed rgb(111, 207, 0);
}

#root.dragging.library-drag-material .scene-material:hover {
  border: 2px dashed rgb(10, 91, 222) !important;
}

@keyframes mat-highlight {
  0% {
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.05);
  }

  50% {
    box-shadow: 0 0 0.08em 0.1em rgba(255, 0, 0, 0.894);
  }

  100% {
    box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.05);
  }
}

.scene-material-content {
  max-height: 0;
  transform: max-height 200mx ease;
  overflow: hidden;
  padding: 0;
}

.scene-material.opened .scene-material-content {
  max-height: 200px;
  padding: 0.5em;
}

.scene-material-header {
  font-size: 0.85em;
  font-weight: 600;
  text-overflow: ellipsis;
  max-height: 2em;
  line-height: 1em;
  padding: 0.5em;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.5em;

  word-break: break-all;
}
.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: #2a2a2a;
  color: #ffffff;
  cursor: pointer;
}
.overridenmat-reset .icon {
  font-size: 1em;
}
.overriden-name {
  font-style: italic;
  opacity: 0.66;
  font-size: 0.8em;
}

.scene-material-content .smart-control {
  grid-template-columns: minmax(10ch, 1fr) minmax(var(--input-width), auto);
}

.highlightinscene {
  color: #fff !important;
}
.object-material .highlightinscene {
  padding-left: 1em;
}

.scene-material-header .highlightinscene {
  color: var(--power-primary-color) !important;
  font-size: 0.9em;
  padding: 0.1em;
  cursor: alias;
}

#protobuttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}
