/* Upload flow — editorial polish (Deep Study). Loaded after theme-deep.css. */

.upload-editorial { max-width: 62rem; margin: 0 auto; padding: 1rem 0 3rem; }
.upload-eyebrow {
  color: var(--accent); font-family: var(--sans); font-weight: 600;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 .5rem;
}
.upload-title {
  font-family: var(--head); font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.05; margin: 0 0 .8rem; color: var(--ink);
}
.upload-lede { color: var(--muted); font-style: italic; font-family: var(--head); margin: 0 0 1rem; }

.upload-form { margin-top: 1.25rem; }

.upload-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; text-align: center;
  padding: 3rem 1.5rem; border-radius: var(--radius);
  border: 2px dashed var(--line); background: var(--card); color: var(--muted);
  cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease;
  outline: none;
}
.upload-dropzone:hover, .upload-dropzone:focus-visible, .upload-dropzone.dragover {
  border-color: var(--accent); color: var(--ink);
}
.dz-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  font-size: 1.4rem; margin-bottom: .35rem;
}
.dz-title { font-family: var(--head); font-size: 1.35rem; color: var(--ink); }
.dz-sub { font-size: .95rem; }
.dz-limits {
  margin-top: .5rem; font-family: var(--sans); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.dz-input { position: absolute; opacity: 0; pointer-events: none; }

.upload-panel {
  margin-top: 1.25rem; padding: 1.1rem 1.2rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.upload-summary-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .55rem;
}
.upload-summary-title {
  font-family: var(--head); font-size: 1.05rem; color: var(--ink);
}
.upload-summary-eta {
  font-family: var(--sans); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.up-bar-lg { height: 6px; border-radius: 999px; }
.up-bar { height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.up-fill { height: 100%; background: var(--accent); transition: width .2s ease; }

.upload-summary-actions {
  display: flex; gap: 1rem; margin-top: .55rem; justify-content: flex-end;
}
.btn-text-danger { color: var(--danger); }
.btn-text-danger:hover { color: #e17158; }

.upload-list {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: grid; gap: .55rem;
}
.up-row {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: .85rem; align-items: center;
  padding: .55rem .7rem; background: var(--card-2);
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px);
}
.up-thumb {
  width: 56px; height: 56px; border-radius: calc(var(--radius) - 4px);
  background: var(--paper); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-body { min-width: 0; }
.up-name {
  color: var(--ink); font-family: var(--head); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.up-meta {
  display: flex; gap: .8rem; margin: .15rem 0 .35rem;
  color: var(--muted); font-size: .78rem;
  font-family: var(--sans); letter-spacing: .06em;
}
.up-status { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.up-row.up-done .up-status { color: var(--ok); }
.up-row.up-error .up-status { color: var(--danger); }
.up-row.up-cancelled .up-status { color: var(--muted); }
.up-row.up-done .up-fill { background: var(--ok); }
.up-row.up-error .up-fill { background: var(--danger); }
.takeout-error { color: var(--danger); margin: .5rem 0 0; }

.up-actions { display: flex; gap: .5rem; align-items: center; }
.up-actions .btn-text {
  padding: .3rem .55rem; border-radius: 999px;
  font-family: var(--sans); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer;
}
.up-actions .btn-text:hover { border-color: var(--accent); color: var(--accent); }
.up-actions .up-view { text-decoration: none; }

.upload-results {
  margin-top: 1.5rem; padding: 1.25rem 1.4rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.result-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.result-item { padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.result-item:last-child { border-bottom: none; }

.upload-section-head {
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  margin: 2rem 0 .6rem;
}
.upload-section { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 2rem; }
.upload-section-lede { color: var(--muted); margin: 0 0 .8rem; }

.upload-folder-section {
  margin-top: 1.5rem; padding: 1.1rem 1.2rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.upload-folder-lede { color: var(--ink); font-family: var(--head); margin: 0 0 .35rem; font-size: .95rem; }
.upload-folder-note { color: var(--muted); font-size: .82rem; margin: 0 0 .65rem; }
.upload-folder-btn { display: inline-block; cursor: pointer; }

.up-album-label {
  font-size: .72rem; color: var(--accent); letter-spacing: .08em;
  font-family: var(--sans); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis;
}

.upload-scale-warn {
  margin-top: .75rem; padding: .55rem .8rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: var(--radius);
  color: var(--ink); font-size: .85rem; font-family: var(--head);
}

@media (max-width: 560px) {
  .upload-dropzone { padding: 2.2rem 1rem; }
  .up-row { grid-template-columns: 48px 1fr; }
  .up-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
