
#results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}

#vResults {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 24px;
}

#aResults {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 24px;
}

.result {
  display: flex;
  gap: 18px;
  padding: 16px;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.015)
    );
  border: 1px solid rgba(124, 92, 255, 0.15);
  backdrop-filter: blur(12px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.result:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow:
    0 0 20px rgba(124, 92, 255, 0.12),
    0 0 40px rgba(0, 229, 255, 0.06);
}

.thumb {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 160px;
}

.thumb img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filename {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.thumb-categories:empty {
  display: none;
}

.thumb-categories-label {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

.thumb-categories .custom-select-wrap {
  width: 100%;
  max-width: 100%;
}

.thumb-categories .custom-select-trigger {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 7px;
}

.thumb-categories .custom-select-option {
  font-size: 12px;
  padding: 6px 8px;
}

.result > div:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-info {
  font-size: 12px;
  color: #7aa2ff;
}

.a-extras-hint {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.a-extras-hint-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-link);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
}
.a-extras-hint-link:hover {
  color: var(--cyan);
}



.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-direction: column;
}

.field-name {
  font-size: 12px;
  color: #7aa2ff;
  margin-bottom: 2px;
}

.field-inner {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.field textarea {
  flex: 1;
  min-height: 40px;
  resize: none;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: #e6e6e6;
  outline: none;
  font-size: 13px;
  overflow: hidden;
  transition: height 0.15s ease;
}

.field textarea:focus {
  border-color: rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.1);
}

.field button {
  width: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(122, 162, 255, 0.1);
  color: #7aa2ff;
  cursor: pointer;
  transition: 0.2s ease;
}

.field button:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.field .field-copy {
  width: auto;
  padding: 0 2px;
  border-radius: 3px;
  background: none;
  font-size: 13px;
  line-height: 1;
}

.field .field-copy:hover {
  background: none;
  box-shadow: none;
}

.field-header .field-counter {
  margin-left: auto;
}

.field-counter {
  font-size: 12px;
  text-align: right;
  transition: color 0.2s;
}

.field-counter.ok-chars   { color: #7aa2ff; } 
.field-counter.ok-words   { color: #00e5ff; } 
.field-counter.over-limit { color: #ffaa44; } 

.v-file-info {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); 
  gap: 12px;
  align-items: start;
}

.v-file-stats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.v-file-stat {
  font-size: 11px;
  color: var(--text-dim);
}

.v-file-stat-label {
  display: inline-block;
  min-width: 62px;
  color: var(--text-muted);
  font-weight: 600;
}

.v-cost-block {
  margin-top: 6px;
}
.v-cost {
  font-size: 12px;
  margin-top: 2px;
}
.v-cost-label {
  color: var(--success);
}
.v-cost strong {
  font-weight: 400;
  color: #ffffff;
}
.v-cost-total {
  margin-top: 4px;
}
.v-cost-total strong {
  font-weight: 400;
}

.v-cost-label--danger { color: var(--neon-red) !important; }

.v-cost-total .v-cost-label--danger {
  margin-left: 14px;
}



.remove-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.remove-files-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,0.12));
  aspect-ratio: 1 / 1;
  background: rgba(255,255,255,0.03);
}
.remove-files-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.remove-files-item .rf-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10.5px; padding: 3px 5px;
  background: rgba(0,0,0,0.72); color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.remove-files-item .rf-delete {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.65);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.remove-files-item .rf-delete:hover { background: var(--neon-red); }
.remove-files-item .rf-delete svg { width: 14px; height: 14px; }



.btn-delete-card,
.btn-media-info {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: transparent;
  color: #b8c1d1;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.btn-delete-card:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-delete-card:hover { color: var(--neon-red); border-color: var(--neon-red); box-shadow: 0 0 14px rgba(255, 23, 68, 0.15); }
.btn-media-info:hover { color: var(--cyan); border-color: var(--cyan); }

.gen-progress-pct {
  font-size: 11px;
  color: var(--text-dim, #8a8a9a);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}



.btn-retry {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(124, 92, 255, 0.2);
  background: transparent;
  color: #b8c1d1;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-retry:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-retry:hover {
  color: #ffffff;
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.15);
}

.btn-unsupported-hint {
  font-size: 11px;
  opacity: 0.65;
  align-self: center;
  font-family: var(--font-sans, inherit);
}

.btn-exif,
.btn-xmp-video,
.btn-xmp-audio {
  /* border-color: rgba(0, 229, 160, 0.3); */
  color: #00e5a0;
}



.spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid #7c5cff;
  border-right: 2px solid #00e5ff;
  display: inline-block;
  animation: spin 1.2s linear infinite;
  box-shadow:
    0 0 10px rgba(124, 92, 255, 0.25),
    0 0 20px rgba(0, 229, 255, 0.15);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4));
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



.success { color: #00e5ff; } /* ✓ Done */
.error   { color: #ff5c7a; } 

#vResults .status,
#aResults .status,
#results .status {
  font-size: 12px;
}
#vResults .status .success,
#aResults .status .success,
#results .status .success {
  color: #00e5a0;
}
#vResults .status .status-idle,
#vResults .status .status-progress,
#aResults .status .status-idle,
#aResults .status .status-progress,
#results .status .status-idle,
#results .status .status-progress {
  color: var(--text-muted);
}


