/* Drag-and-drop creative upload — two themes: .fpo-cu-mad (dark gallery) and .fpo-cu-hub (apps hub) */

.fpo-cu-wrap { margin: 0 0 18px; }
.fpo-cu-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 140px;
  padding: 22px 18px;
  border: 2px dashed var(--fpo-cu-line, #cfd7e1);
  border-radius: 14px;
  background: var(--fpo-cu-bg, #fff);
  color: var(--fpo-cu-muted, #5d6a7a);
  text-align: center;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.fpo-cu-zone:hover, .fpo-cu-zone:focus-visible {
  border-color: var(--fpo-cu-accent, #5b8cff);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fpo-cu-accent, #5b8cff) 25%, transparent);
}
.fpo-cu-zone.is-over {
  border-color: var(--fpo-cu-accent, #5b8cff);
  background: var(--fpo-cu-over, #eef4ff);
}
.fpo-cu-zone[hidden], .fpo-cu-section[hidden] { display: none !important; }
.fpo-cu-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.fpo-cu-title { font-weight: 800; font-size: 1rem; color: var(--fpo-cu-ink, #1c2430); margin: 0; }
.fpo-cu-hint { margin: 0; font-size: 0.88rem; }
.fpo-cu-browse {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; margin-top: 6px; padding: 8px 14px; border-radius: 9px;
  background: var(--fpo-cu-accent, #5b8cff); color: #fff; font-weight: 800; font-size: 0.88rem;
  pointer-events: none;
}
.fpo-cu-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.fpo-cu-row { border: 1px solid var(--fpo-cu-line, #cfd7e1); border-radius: 10px; padding: 10px 12px; background: var(--fpo-cu-bg, #fff); }
.fpo-cu-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; }
.fpo-cu-name { font-weight: 700; color: var(--fpo-cu-ink, #1c2430); word-break: break-all; }
.fpo-cu-status { color: var(--fpo-cu-muted, #5d6a7a); white-space: nowrap; }
.fpo-cu-row.is-error .fpo-cu-status { color: #b91c1c; }
.fpo-cu-row.is-ok .fpo-cu-status { color: #15803d; }
.fpo-cu-bar { height: 8px; margin-top: 8px; border-radius: 999px; background: var(--fpo-cu-track, #e5eaf1); overflow: hidden; }
.fpo-cu-bar > span { display: block; height: 100%; width: 0; background: var(--fpo-cu-accent, #5b8cff); transition: width .12s linear; }
.fpo-cu-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fpo-cu-actions a, .fpo-cu-dl {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 8px 12px; border-radius: 9px; font-size: 0.82rem; font-weight: 800;
  text-decoration: none; line-height: 1.2;
}
.fpo-cu-dl { background: var(--fpo-cu-accent, #5b8cff); color: #fff; }
.fpo-cu-open { background: var(--fpo-cu-open-bg, #24314d); color: var(--fpo-cu-open-fg, #dbe7ff); border: 1px solid var(--fpo-cu-line, #3d527a); }
.fpo-cu-actions a:hover { filter: brightness(1.08); }
.fpo-cu-actions a:focus-visible { outline: 3px solid #ffb400; outline-offset: 3px; }

/* Marketing Ads Directory (dark) */
.fpo-cu-mad {
  --fpo-cu-bg: #121a2b; --fpo-cu-ink: #e8eefc; --fpo-cu-muted: #9aadcc;
  --fpo-cu-line: #3d527a; --fpo-cu-accent: #5b8cff; --fpo-cu-over: #1a2744;
  --fpo-cu-track: #24314d; --fpo-cu-open-bg: #24314d; --fpo-cu-open-fg: #dbe7ff;
}
.fpo-cu-mad .fpo-cu-zone { color: #9aadcc; }
.fpo-cu-mad .fpo-cu-row.is-error .fpo-cu-status { color: #fca5a5; }
.fpo-cu-mad .fpo-cu-row.is-ok .fpo-cu-status { color: #6ee7a8; }

/* eprintz / hub (light) */
.fpo-cu-hub {
  --fpo-cu-bg: #fff; --fpo-cu-ink: #1c2430; --fpo-cu-muted: #5d6a7a;
  --fpo-cu-line: #cfd7e1; --fpo-cu-accent: #152238; --fpo-cu-over: #eef4ff;
  --fpo-cu-track: #e5eaf1; --fpo-cu-open-bg: #fff; --fpo-cu-open-fg: #1c2430;
}
.fpo-cu-hub .fpo-cu-dl { background: #152238; color: #fff; }
.fpo-cu-hub .fpo-cu-open { border: 1px solid #cfd7e1; }
.fpo-cu-hub .hub-gallery video,
.fpo-cu-hub .hub-gallery .fpo-cu-media {
  display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 8px; background: #eef1f5;
}
.fpo-cu-hub figure .fpo-cu-actions { margin-top: 8px; }
.fpo-cu-pdf-fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 180px; border-radius: 8px; background: #152238; color: #e3c77a;
  font-weight: 800; letter-spacing: .04em;
}

.fpo-cu-mad-card .media .fpo-cu-pdf-fallback { height: 100%; border-radius: 0; background: #0b1220; }
