/* PlexRemap: the batch table and the image drop zone. */

.batch { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.batch-head { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px;
  padding: 7px 12px; background: var(--surface2); border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text3);
  position: sticky; top: 0; z-index: 2; }
.batch-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px;
  padding: 6px 12px; align-items: center; background: var(--surface); }
.batch-row + .batch-row { border-top: 1px solid var(--border); }
.batch-row:hover { background: var(--surface2); }
.batch-row .n { color: var(--text2); font-weight: 700; font-size: 12px; }
.batch-row textarea { min-height: 34px; resize: vertical; }
.batch-row.bad { background: color-mix(in srgb, var(--error) 8%, transparent); }

/* the upload table shows a thumbnail, so its first column is wider */
.upload-table .batch-head, .upload-table .batch-row { grid-template-columns: minmax(0, 1.2fr) 90px minmax(0, 1fr); }
.upload-table .shot { width: 48px; height: 27px; object-fit: cover; border-radius: 4px; border: 1px solid var(--border); flex: none; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px;
  text-align: center; color: var(--text2); cursor: pointer; transition: border-color .12s, background .12s; }
.drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.drop svg { width: 26px; height: 26px; color: var(--text3); }
.drop.over svg { color: var(--accent); }

.k-manual { --c: var(--manual); }

@media (max-width: 720px) {
  .batch-head { display: none; }
  .batch-row, .upload-table .batch-row { grid-template-columns: 62px minmax(0, 1fr); gap: 6px; }
  .batch-row > :nth-child(3) { grid-column: 2; }
  .upload-table .batch-row > :nth-child(2) { grid-column: 2; }
}

.two-boxes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-m); }
.two-boxes textarea { min-height: 150px; font-family: var(--mono); font-size: 12.5px; }
@media (max-width: 720px) { .two-boxes { grid-template-columns: 1fr; } }
