
body.fp-ed .fp-up { display: grid; gap: 10px; }

/* the real <input type=file> is visually hidden but stays keyboard-reachable;
   the .fp-up-zone is a <label for> so click + Enter/Space open the picker. */
body.fp-ed .fp-up-input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

body.fp-ed .fp-up-zone {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.6px dashed #cdd8ee; border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff, #f4f8fe);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
body.fp-ed .fp-up-zone:hover {
  border-color: #5c8df6;
  background: linear-gradient(180deg, #f6faff, #ecf3ff);
}
body.fp-ed .fp-up-input:focus-visible + .fp-up-zone,
body.fp-ed .fp-up-zone:focus-visible {
  outline: none; border-color: #5c8df6; box-shadow: 0 0 0 3px rgba(92, 141, 246, 0.18);
}
body.fp-ed .fp-up-zone { cursor: pointer; }
body.fp-ed .fp-up.is-dragover .fp-up-zone {
  border-style: solid; border-color: #2563eb;
  background: #eaf1fe; box-shadow: inset 0 0 0 1px #2563eb, 0 12px 26px -16px rgba(37, 99, 235, 0.7);
  transform: translateY(-1px);
}
body.fp-ed .fp-up.is-disabled .fp-up-zone { opacity: 0.55; pointer-events: none; cursor: not-allowed; }

/* icon tile */
body.fp-ed .fp-up-ic {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 10px 22px -12px rgba(29, 78, 216, 0.7);
  transition: transform 0.16s ease;
}
body.fp-ed .fp-up-ic svg { width: 22px; height: 22px; }
body.fp-ed .fp-up-zone:hover .fp-up-ic,
body.fp-ed .fp-up.is-dragover .fp-up-ic { transform: translateY(-2px); }

/* text block */
body.fp-ed .fp-up-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
body.fp-ed .fp-up-main strong { font-size: 0.92rem; font-weight: 700; color: #111b30; }
body.fp-ed .fp-up-sub { font-size: 0.79rem; color: #6e6880; line-height: 1.4; }
body.fp-ed .fp-up-sub em { font-style: normal; font-weight: 600; color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }

/* max-size / type pill on the right */
body.fp-ed .fp-up-tag {
  flex-shrink: 0;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #1d4ed8; background: #eaf1fe; border: 1px solid #d6e3fe; border-radius: 999px;
  padding: 5px 11px; white-space: nowrap;
}

/* status / error line (aria-live) */
body.fp-ed .fp-up-status { margin: 0; font-size: 0.78rem; color: #8a8497; line-height: 1.4; }
body.fp-ed .fp-up-status:empty { display: none; }
body.fp-ed .fp-up-status.is-error { color: #c0392b; font-weight: 600; }
body.fp-ed .fp-up-status.is-ok { color: #0d9b66; font-weight: 600; }

body.fp-ed .fp-up-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
body.fp-ed .fp-up-chip {
  display: inline-flex; align-items: center; gap: 9px; max-width: 100%;
  font-size: 0.76rem; color: #3a4250;
  background: #fff; border: 1px solid #e3e8f3; border-radius: 11px;
  padding: 7px 9px 7px 8px;
  box-shadow: 0 1px 2px rgba(10, 23, 50, 0.04);
}
body.fp-ed .fp-up-chip-thumb {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; object-fit: cover;
  background: #eef2fa; display: inline-flex; align-items: center; justify-content: center; color: #5c8df6;
}
body.fp-ed .fp-up-chip-thumb svg { width: 16px; height: 16px; }
body.fp-ed .fp-up-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; font-weight: 600; color: #2a3242; }
body.fp-ed .fp-up-chip-size { flex-shrink: 0; color: #9a93a8; font-variant-numeric: tabular-nums; }
body.fp-ed .fp-up-chip-x {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: #f0f3fb; color: #6e6880; transition: background 0.14s ease, color 0.14s ease;
}
body.fp-ed .fp-up-chip-x:hover { background: #fde7e6; color: #c0392b; }
body.fp-ed .fp-up-chip-x svg { width: 12px; height: 12px; }

body.fp-ed .fp-up--inline .fp-up-zone { padding: 12px 14px; gap: 11px; }
body.fp-ed .fp-up--inline .fp-up-ic { width: 38px; height: 38px; border-radius: 11px; }
body.fp-ed .fp-up--inline .fp-up-ic svg { width: 18px; height: 18px; }
body.fp-ed .fp-up--inline .fp-up-main strong { font-size: 0.86rem; }
body.fp-ed .fp-up--inline .fp-up-sub { font-size: 0.74rem; }

@media (max-width: 480px) {
  body.fp-ed .fp-up-zone { flex-wrap: wrap; padding: 14px; }
  body.fp-ed .fp-up-tag { order: 3; }
  body.fp-ed .fp-up-chip-name { max-width: 130px; }
}

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body.fp-ed .fp-up-zone, body.fp-ed .fp-up-ic { transition: none; }
  body.fp-ed .fp-up.is-dragover .fp-up-zone, body.fp-ed .fp-up-zone:hover .fp-up-ic { transform: none; }
}
