#panel-figmaframes {
  max-width: 1200px;
}

.figma-header h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
}

.figma-dropzone {
  display: block;
  border: 2px dashed var(--border-color);
  border-radius: 4px;
  padding: 2rem;
  text-align: center;
  background: #faf9f6;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.figma-dropzone:hover,
.figma-dropzone.figma-dropzone-active {
  border-color: var(--gold-primary);
  background: #fdfaf2;
}

.figma-dropzone input[type="file"] {
  display: none;
}

.figma-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.25rem 0;
  align-items: center;
}

.figma-presets label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 0;
}

.figma-sample-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 1.5rem;
  min-height: 120px;
}

.figma-sample-wrap img {
  max-width: 220px;
  max-height: 400px;
  width: auto;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

.figma-queue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.figma-queue-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.figma-queue-item {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.figma-queue-item.figma-dragging {
  opacity: 0.5;
}

.figma-queue-item.figma-drag-over {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(197, 165, 114, 0.3);
}

.figma-item-top {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.figma-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0.25rem;
  user-select: none;
  line-height: 1;
}

.figma-drag-handle:active {
  cursor: grabbing;
}

.figma-thumb-wrap {
  flex: 1;
  min-height: 80px;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f6;
  border-radius: 2px;
  overflow: hidden;
}

.figma-thumb-wrap img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.figma-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.figma-item-actions button {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  min-width: 2rem;
}

.figma-name-input {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
}

.figma-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.figma-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.figma-progress.error {
  color: var(--danger);
}

.figma-progress.ok {
  color: var(--success);
}
