.dev-texture-tool {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2147483000;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(80vh, 620px);
  padding: 0.75rem;
  overflow: auto;
  color: #d9ffd3;
  background: rgba(7, 20, 14, 0.97);
  border: 1px solid #4d991f;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(77, 153, 31, 0.55);
  font: 12px/1.35 "Courier New", monospace;
}

.dev-texture-tool.is-collapsed .dev-texture-panel {
  display: none;
}

.dev-texture-tool.is-collapsed {
  display: none;
}

.dev-texture-header,
.dev-texture-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dev-texture-header {
  justify-content: space-between;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(137, 255, 99, 0.35);
}

.dev-texture-header strong {
  color: #89ff63;
  letter-spacing: 0.08em;
}

.dev-texture-tool button {
  color: inherit;
  background: #142d1b;
  border: 1px solid #3f7c2e;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}

.dev-texture-tool button:hover,
.dev-texture-tool button.is-selected {
  color: #061006;
  background: #89ff63;
}

.dev-texture-toggle,
.dev-texture-layer {
  padding: 0.3rem 0.5rem;
}

.dev-texture-close {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  font-size: 1.2rem !important;
  line-height: 1;
}

.dev-texture-status {
  min-height: 2.7em;
  margin: 0.65rem 0;
  color: #c5deb8;
}

.dev-texture-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.dev-texture-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  text-align: left;
}

.dev-texture-clear {
  grid-column: 1 / -1;
  justify-content: center;
  color: #ffcf8a !important;
}

.dev-texture-preview {
  flex: 0 0 36px;
  width: 36px;
  height: 30px;
  background-repeat: repeat;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.dev-texture-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dev-texture-selected {
  outline: 2px dashed #ffdb55 !important;
  outline-offset: 3px !important;
}