body {
  font-family: system-ui, sans-serif;
  margin: 2em;
  background: #fafafa;
}

h2, h3 {
  margin-bottom: 0.5em;
}

input[type="text"] {
  width: 250px;
  margin-bottom: 1em;
  padding: 0.3em;
}

button {
  margin-top: 0.5em;
  padding: 0.5em 1em;
  font-size: 1em;
}

.file-gallery {
  min-height: 120px;
  border: 2px dashed #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1em;
  padding: 1em;
  text-align: center;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}

.file-gallery.dragover {
  border-color: #4a90e2;
  background: #e6f0ff;
  transform: scale(1.02);
  color: #333;
}

#smartGallery {
  min-height: 150px;
  cursor: pointer;
}

#smartInput {
  display: none;
  pointer-events: none;
}

.file-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 1px solid #ccc;
  padding: 5px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.file-card:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #aaa;
}

.preview {
  font-size: 0.85em;
  text-align: center;
  word-break: break-word;
}

.earshotContainer {
  display: flex;
  flex-wrap: wrap;
}

.earshot-entry {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #ccc;
  background: #fff;
}

.earshot-entry .thumbnail {
  width: 60px;
  height: 60px;
}

.reverseColorway {
  padding: 0.2em;
}
