.upload-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.upload-control input[type="file"] {
  min-width: 0;
  padding: 7px;
  border: 1px dashed #cbd5e4;
  border-radius: 9px;
  background: #f8fbff;
  color: #6d778a;
  font-size: 11px;
  cursor: pointer;
}

.upload-control input[type="file"]::file-selector-button {
  margin-right: 9px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: #1877f2;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.upload-control input[type="file"]:disabled {
  opacity: .6;
  cursor: wait;
}

.upload-status {
  min-width: 78px;
  color: #7d899c;
  font-size: 10px;
  text-align: right;
}

.upload-preview {
  display: none;
  grid-column: 1 / -1;
  width: 100%;
  max-width: 320px;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  padding: 8px;
  border: 1px solid #e3e8f0;
  border-radius: 10px;
  background: #fff;
}

.upload-preview.visible { display: block; }
.ad-thumb { width: 100%; height: 120px; margin: 10px 0; border-radius: 10px; object-fit: cover; background: #edf2f8; }

@media (max-width: 720px) {
  .upload-control { grid-template-columns: 1fr; }
  .upload-status { text-align: left; }
}
