/* Media tab + upload modal */
.media-tabs-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.thumb-btn { border: 0; background: none; padding: 0; cursor: zoom-in; border-radius: 6px; display: inline-block; }
.media-name { font-weight: 550; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rename-input { width: 220px; }
.used-in { border-bottom: 1px dotted var(--text-3); cursor: help; }
.review-actions { display: flex; gap: 6px; }
.review-btn .icon { width: 14px; height: 14px; }

.upload-body { display: flex; flex-direction: column; gap: 14px; }
.upload-adv { margin-bottom: 0; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  padding: 28px 16px; border: 1.5px dashed var(--border-strong); border-radius: 10px; background: var(--surface-2);
  cursor: pointer; transition: border-color var(--t), background var(--t);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); color: var(--accent-text); border: 1px solid var(--border); }
.dropzone-title { font-weight: 600; }
.upload-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upload-spec { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); }
.upload-spec.current { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.upload-spec-icon { color: var(--text-3); }
.upload-spec-icon .icon { width: 17px; height: 17px; }
.upload-spec-title { font-weight: 600; font-size: 12.5px; }
.upload-list { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; }
.upload-list:empty { display: none; }
.upload-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.upload-item.is-error { border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); }
.upload-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.upload-item-top { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; }
.upload-name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.progress { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 120ms linear; }
.upload-item.is-done .progress-bar { background: var(--good); }
.upload-item.is-error .progress-bar { background: var(--bad); width: 100% !important; }
.upload-status.info { color: var(--text-3); }
.upload-status.success { color: var(--good); font-weight: 550; }
.upload-status.error { color: var(--bad); font-weight: 550; }
.upload-modal .modal-foot { align-items: center; }
@media (max-width: 640px) { .upload-specs { grid-template-columns: 1fr; } }
