/*
 * FilePondPluginImagePreview draws a decorative vignette over every preview: an <svg> whose
 * <rect fill="currentColor"> is shaped by a radial-gradient mask, meant to softly darken the
 * top edge of a wide (500x200) photo-style preview. That gradient's geometry assumes that wide
 * aspect ratio; stretched (preserveAspectRatio="none") into a small square logo preview like
 * ours, the mask covers almost the entire thumbnail instead of just an edge. Since currentColor
 * here just inherits the page's ordinary near-black text colour, the "vignette" ends up as a
 * solid black blob over the whole logo -- in light or dark mode alike, since body text is dark
 * in both. The vignette is purely cosmetic (real upload progress/errors have their own
 * indicators), so remove it outright rather than trying to reshape it per aspect ratio --
 * neutralising just its colour still depends on currentColor reaching the SVG's fill correctly,
 * one more link than this needs.
 */
.filepond--image-preview-overlay {
    display: none !important;
}

/*
 * With the broken vignette gone, a transparent logo (typically dark line art, as most bar
 * branding is) still has poor contrast against FilePond's own preview backdrop -- and that
 * backdrop has nothing to do with Filament's light/dark theme: FilePondPluginImagePreview
 * hardcodes `.filepond--image-preview { background: #222 }` unconditionally, in every theme.
 * Overriding it to a light colour is the standard fix for this -- a logo's own colours are
 * unpredictable, but a light preview canvas keeps any of them visible.
 */
.filepond--image-preview {
    background-color: white !important;
}

/*
 * The filename/size text (and originally the round remove/edit button icons) inherit
 * `.filepond--file { color: #fff }` -- meant to read against a dark photo, invisible against
 * the light backdrop above. The action buttons aren't affected: each sets its own explicit
 * `color: #fff` plus its own dark circular background, so this only reaches the plain text.
 */
.filepond--file {
    color: #1f2937 !important;
}
