.dropzone {
  position: relative; overflow: hidden;
  border: 1px dashed rgba(22,50,79,.3); border-radius: 8px;
  padding: 34px; text-align: center; background: rgba(255,255,255,.62);
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.dropzone::before { content: "+"; position: absolute; right: 16px; top: -14px; color: rgba(22,50,79,.08); font-family: var(--display); font-size: 110px; line-height: 1; transition: transform .3s ease, color .3s ease; }
.dropzone:hover::before, .dropzone.over::before { color: rgba(22,50,79,.14); transform: rotate(12deg) scale(1.08); }
.dropzone:hover, .dropzone.over { border-color: var(--deep); background: #fff; transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0,0,0,.08); }
.dropzone p { color: var(--ink-faint); margin-bottom: 12px; }

.filetable { margin-top: 16px; font-size: 14px; }
.filetable th {
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-faint);
}
.filetable td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.filetable tr.bad td { background: var(--err-bg); }

/* ---- Step 4: drop zone LEFT, file list RIGHT, messages BELOW both ------
   Adding a file must not push the rest of the page down, so the list sits
   beside the zone rather than under it. */
.upload-split {
  display: flex; gap: 20px; align-items: stretch;
}
.upload-left  { flex: 0 0 300px; display: flex; }
.upload-left .dropzone {
  flex: 1; padding: 20px 16px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
}
.upload-left .dropzone p { margin: 0; font-size: 13.5px; }
.upload-right {
  flex: 1 1 auto; min-width: 0;
  border: 0; border-radius: 8px;
  padding: 18px; background: rgba(255,255,255,.62);
  max-height: 260px; overflow-y: auto;
}
.upload-right-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-faint); margin-bottom: 8px; font-weight: 650;
}

.filelist { font-size: 13.5px; }
.filelist li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-bottom: 1px solid rgba(22,50,79,.08);
  transition: background .18s ease, padding-left .18s ease;
}
.filelist li:hover { padding-left: 13px; background: #fff; }
.filelist li:last-child { border-bottom: none; }
.filelist li.bad .fl-name { color: var(--err); }
.fl-name {
  flex: 0 0 auto; max-width: 42%; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-kind {
  flex: 1 1 auto; min-width: 0; color: var(--ink-faint); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fl-remove {
  width: 24px; height: 24px; flex: 0 0 24px; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--ink-faint); font: 600 18px/24px sans-serif;
  cursor: pointer; transition: color .16s ease, background .16s ease;
}
.fl-remove:hover, .fl-remove:focus-visible { color: var(--err); background: var(--err-bg); }
.fl-remove:disabled { cursor: wait; opacity: .45; }
.filelist li.fl-detail { display: block; font-size: 12.5px; padding-left: 4px; }
.fl-totals { margin-top: 10px; font-size: 12.5px; }
