/* Thư viện ảnh bài viết (modal dùng chung 5 nhóm).
    Tái dùng .modal/.modal-backdrop/.btn/.toolbar/.tip của app.css. */
.fme-images-modal { width: min(760px, 100%); }
.fme-images-tabs { display: flex; gap: 6px; border-bottom: 1px solid #dfe6ec; margin-bottom: 14px; }
.fme-images-tab {
  border: 1px solid transparent; border-bottom: none; background: none;
  padding: 9px 14px; font-size: 13px; font-weight: 700; color: #62798a;
  border-radius: 8px 8px 0 0; cursor: pointer;
}
.fme-images-tab.active { color: #132d65; background: #eef4fa; border-color: #dfe6ec; }
.fme-images-dropzone {
  border: 2px dashed #6b9cbc; border-radius: 10px; padding: 34px 16px;
  text-align: center; cursor: pointer; background: #f7fafc;
}
.fme-images-dropzone.drag { background: #eaf4f8; border-color: #132d65; }
.fme-images-dropzone p { margin: 4px 0; font-size: 13px; color: #355a74; }
.fme-images-status { margin-top: 10px; overflow-wrap: anywhere; }
.fme-images-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; max-height: 46vh; overflow: auto; padding-right: 2px;
}
.fme-images-cell {
  position: relative; border: 1px solid #dfe6ec; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: #fff;
}
.fme-images-cell.selected { outline: 3px solid #132d65; outline-offset: -1px; }
.fme-images-cell img { width: 100%; height: 110px; object-fit: cover; display: block; background: #eef1f4; }
.fme-images-name {
  display: block; padding: 6px 8px 0; font-size: 12px; font-weight: 700; color: #132d65;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fme-images-meta { display: block; padding: 2px 8px 4px; font-size: 11px; color: #768693; }
.fme-images-scan {
  display: inline-block; margin: 0 8px 8px; padding: 2px 7px; border-radius: 20px;
  font-size: 10px; font-weight: 700; background: #fff3df; color: #9c651b;
}
.fme-images-delete {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  border: none; border-radius: 50%; background: #071d33cc; color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer;
}
.fme-images-actions { margin-top: 16px; }
.fme-images-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
