.converter-panel {
  display: grid;
  gap: 21px;
  overflow: visible;
}

.converter-panel::before { content: none; }

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 270px;
  padding: 30px 22px;
  overflow: hidden;
  border: 1px dashed rgba(255, 191, 0, 0.58);
  border-radius: var(--radius-md);
  background: #0A0B0D;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--gcg-gold-outline-light);
  background: #0E0F11;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  border: 1px solid var(--line-gold);
  border-radius: 16px;
  background: rgba(255, 191, 0, 0.11);
  color: var(--gcg-gold-main);
  font-size: 1.75rem;
  font-weight: 800;
}

.drop-title {
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.drop-subtitle {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.choose-button { pointer-events: none; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.setting-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 145px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #15171A;
}

.setting-card label {
  color: #FFFFFF;
  font-weight: 800;
}

.setting-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.setting-card.disabled {
  opacity: 0.46;
}

.setting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.setting-head output {
  color: var(--gcg-gold-main);
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gcg-gold-main);
}

.text-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  background: #0E0F11;
  color: #FFFFFF;
  font: inherit;
}

.text-input:focus {
  border-color: var(--line-gold-strong);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.queue-section {
  padding-top: 36px;
}

.queue-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.panel-title {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1;
}

.count-pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101113;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 26px;
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state > span {
  color: var(--gcg-gold-main);
  font-family: var(--font-title);
  font-size: 2.25rem;
}

.empty-state p {
  margin: 8px 0 0;
  color: var(--muted);
}

.results {
  display: grid;
  gap: 12px;
}

.file-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #101113;
}

.file-card.error-card {
  border-color: rgba(220, 90, 90, 0.55);
}

.preview-wrap {
  display: grid;
  place-items: center;
  width: 116px;
  height: 104px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #090A0B;
}

.preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heic-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--gcg-gold-main);
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.file-main {
  min-width: 0;
}

.file-name {
  margin: 0 0 5px;
  overflow: hidden;
  color: #FFFFFF;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-status {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.78rem;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-chip {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.68rem;
}

.meta-chip.saving {
  border-color: rgba(255, 191, 0, 0.25);
  color: var(--gcg-gold-light);
}

.file-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-actions .primary-button,
.file-actions .secondary-button {
  min-width: 150px;
}

.progress-bar {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #25272A;
}

.progress-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--gcg-gold-main);
  animation: gcg-progress 1.15s ease-in-out infinite alternate;
}

@keyframes gcg-progress {
  from { transform: translateX(-95%); }
  to { transform: translateX(235%); }
}

@media (max-width: 820px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .file-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .preview-wrap {
    width: 96px;
    height: 90px;
  }

  .file-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .file-actions .primary-button,
  .file-actions .secondary-button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .file-card {
    grid-template-columns: 1fr;
  }

  .preview-wrap {
    width: 100%;
    height: 210px;
  }

  .file-actions {
    grid-column: auto;
    flex-direction: column;
  }
}
