/**
 * Image Tools — idle first-paint lock (max-width 760px).
 * Overrides #mobile-critical-css generic blue upload shell before tool SEO CSS loads.
 * Upload + CTA icons use static ::before masks; Lucide stays hidden idle.
 */
@media (max-width: 760px) {
  html body.flux-tool-image-tools,
  html body.flux-tool-image-tools main.page-shell.tool-page {
    background: #f8fbff !important;
    color: #181d20 !important;
  }

  html body.flux-tool-image-tools .tool-panel,
  html body.flux-tool-image-tools #tool-workspace.tool-panel,
  html body.flux-tool-image-tools .utility-studio,
  html body.flux-tool-image-tools .pdf-studio {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body.flux-tool-image-tools section.tool-page-hero,
  html body.flux-tool-image-tools .tool-page-hero {
    margin: 0.5rem 0 0.65rem !important;
    padding: 1rem 0.85rem 0.55rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  html body.flux-tool-image-tools .c100kb-tool-intent-header {
    text-align: center !important;
    margin: 0 0 0.55rem !important;
    padding: 0 0.25rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #0f172a !important;
  }

  html body.flux-tool-image-tools .c100kb-tool-intent-header h1 {
    margin: 0 !important;
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(1.28rem, 5.8vw, 1.72rem) !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #181d20 !important;
    letter-spacing: -0.02em !important;
  }

  html body.flux-tool-image-tools .c100kb-tool-intent-header .c100kb-hero-lead {
    display: block !important;
    max-width: 42rem !important;
    margin: 0.35rem auto 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: clamp(0.875rem, 0.95vw, 0.9375rem) !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    color: #334155 !important;
    opacity: 1 !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
  }

  html body.flux-tool-image-tools .c100kb-target-badge {
    display: none !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) label.upload-box[data-upload-box],
  html body.flux-tool-image-tools .premium-uploader:not(.has-uploaded-file) label.upload-box[data-upload-box] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 1.5rem 1.125rem 1.35rem !important;
    border: 1px dashed rgba(147, 197, 253, 0.72) !important;
    border-radius: 23px !important;
    outline: none !important;
    outline-offset: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #f5f8ff 100%) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08) !important;
    text-align: center !important;
    color: #172033 !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) label.upload-box[data-upload-box]::before,
  html body.flux-tool-image-tools form:not(.has-uploaded-file) label.upload-box[data-upload-box]::after,
  html body.flux-tool-image-tools .premium-uploader:not(.has-uploaded-file) .upload-box::before,
  html body.flux-tool-image-tools .premium-uploader:not(.has-uploaded-file) .upload-box::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-upload-title {
    display: block !important;
    margin: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.3px !important;
    color: #101828 !important;
    text-transform: none !important;
    -webkit-text-fill-color: #101828 !important;
    opacity: 1 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-upload-subtitle {
    display: block !important;
    margin: 8px 0 22px !important;
    max-width: 18rem;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #667085 !important;
    text-transform: none !important;
    -webkit-text-fill-color: #667085 !important;
    opacity: 1 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    margin: 0 auto 0.15rem !important;
    padding: 0 !important;
    border: 1px solid rgba(191, 219, 254, 0.88) !important;
    border-radius: 24px !important;
    background: linear-gradient(168deg, #ffffff 0%, #f5f9ff 52%, #eaf2ff 100%) !important;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 10px 26px rgba(37, 99, 235, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
    color: #1d4ed8 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap::before {
    content: "" !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    background: #1d4ed8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap i,
  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap i svg,
  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap > svg,
  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap svg {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-cta-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 270px !important;
    margin: 0 auto !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    max-width: 270px !important;
    min-height: 53px !important;
    height: 53px !important;
    margin: 0 !important;
    padding: 0.74rem 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 54%, #7c3aed 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta .upload-cta-label {
    font-size: 0 !important;
    line-height: 0 !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta .upload-cta-label::after {
    content: "Choose Image" !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > i,
  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > i.ic-upload-cta-static {
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    position: relative !important;
    vertical-align: middle !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > i::before,
  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > i.ic-upload-cta-static::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > i svg {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-secondary-cta.ic-m-desktop-drag,
  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-secondary-cta,
  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-secondary-cta,
  html body.flux-tool-image-tools .utility-studio:not(.has-uploaded-file) .upload-secondary-cta,
  html body.flux-tool-image-tools .utility-form:not(.has-uploaded-file) .upload-secondary-cta {
    display: none !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-drag-helper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 270px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-drag-helper strong {
    color: #3b82f6 !important;
    -webkit-text-fill-color: #3b82f6 !important;
    font-weight: 700 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-formats.c100kb-upload-formats {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] strong:not(.ic-m-upload-title) {
    display: none !important;
  }

  html body.flux-tool-image-tools label.upload-box[data-upload-box] small:not(.ic-m-upload-subtitle) {
    display: none !important;
  }
}

@media (max-width: 760px) {
  html[data-theme="dark"] body.flux-tool-image-tools,
  html[data-theme="dark"] body.flux-tool-image-tools main.page-shell.tool-page {
    background: #020617 !important;
    color: #e2e8f0 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools form:not(.has-uploaded-file) label.upload-box[data-upload-box] {
    background: linear-gradient(180deg, #0f172a 0%, #111827 58%, #0b1220 100%) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
    color: #e2e8f0 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools .c100kb-tool-intent-header h1 {
    color: #f1f5f9 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools .c100kb-tool-intent-header .c100kb-hero-lead {
    color: #94a3b8 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-upload-title {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools label.upload-box[data-upload-box] .ic-m-upload-subtitle {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap {
    background: linear-gradient(168deg, #1e293b 0%, #172033 52%, #0f172a 100%) !important;
    border-color: rgba(96, 165, 250, 0.35) !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap::before {
    background: #60a5fa !important;
  }
}

/* Beat per-tool SEO blocks that set upload-icon::before { content: none } before Lucide hydrates */
@media (max-width: 760px) {
  html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro main[data-tool] form:not(.has-uploaded-file) label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap:not(:has(i svg))::before,
  html body.flux-tool-image-tools.compress-100kb-pro main[data-tool] form:not(.has-uploaded-file) label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap:not(:has(i svg))::before,
  html body.flux-tool-body.flux-tool-image-tools main[data-tool] label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap:not(:has(i svg))::before {
    content: "" !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    background: #1d4ed8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html[data-theme="dark"] body.flux-tool-image-tools label.upload-box[data-upload-box] .upload-icon.ic-m-upload-icon-wrap:not(:has(i svg))::before {
    background: #60a5fa !important;
  }
}

/* Beat style.min Phase9AUploadBoxOnly (main#main#main) — must load after style.min in HTML */
@media (max-width: 760px) {
  html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro
  main#main#main > section.tool-page-hero.ic-desktop-hero-outside {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  html body.flux-tool-body.flux-tool-image-tools.compress-100kb-pro
  main#main#main .c100kb-tool-intent-header.ic-mobile-hero-only {
    display: block !important;
    visibility: visible !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel.tlv-desktop-upload-master,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]::before,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 1.5rem 1.125rem 1.35rem !important;
    border: 1px dashed rgba(147, 197, 253, 0.72) !important;
    border-radius: 23px !important;
    outline: none !important;
    outline-offset: 0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 58%, #f5f8ff 100%) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08) !important;
    text-align: center !important;
    color: #172033 !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap {
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    margin: 0 auto 0.15rem !important;
    padding: 0 !important;
    border: 1px solid rgba(191, 219, 254, 0.88) !important;
    border-radius: 24px !important;
    background: linear-gradient(168deg, #ffffff 0%, #f5f9ff 52%, #eaf2ff 100%) !important;
    color: #1d4ed8 !important;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 10px 26px rgba(37, 99, 235, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    box-shadow: none !important;
    opacity: 0 !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) .upload-secondary-cta.ic-m-desktop-drag,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) .upload-secondary-cta,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  label.upload-box[data-upload-box] .upload-secondary-cta,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  .utility-studio:not(.has-uploaded-file) .upload-secondary-cta,
  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  .utility-form:not(.has-uploaded-file) .upload-secondary-cta {
    display: none !important;
  }

  html body.flux-tool-body.flux-tool-image-tools:not(.generic-tool-studio-active):not(.passport-editor-active)
  main#main#main #tool-workspace.tool-panel
  form:not(.has-uploaded-file) label.upload-box[data-upload-box] > strong:not(.ic-m-upload-title) {
    display: none !important;
  }
}

/* Idle icon lock — beats tool SEO :has(i svg) swaps; load after tool SEO CSS in HTML */
@media (max-width: 760px) {
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap::before {
    content: "" !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    background: #1d4ed8 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H21a2 2 0 0 1 2 2v9.3'/%3E%3Cpath d='m14 19 3-3 3 3'/%3E%3Cpath d='M17 16v6'/%3E%3Cpath d='M21 12v.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap i,
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap i svg {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-primary-cta > i,
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-primary-cta > i.ic-upload-cta-static {
    display: inline-block !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    position: relative !important;
  }

  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-primary-cta > i::before,
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-primary-cta > i.ic-upload-cta-static::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-primary-cta > i svg {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* If Lucide replaced <i>, static mask on svg — never blank CTA icon */
  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > svg[data-lucide] {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    flex: 0 0 18px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    color: transparent !important;
    stroke: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > svg[data-lucide] * {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .upload-primary-cta > svg[data-lucide]::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background: #fff !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html[data-theme="dark"] body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) label.upload-box[data-upload-box]
  .upload-icon.ic-m-upload-icon-wrap::before {
    background: #60a5fa !important;
  }

  /* Beat style.min Phase9A — hide Drag Here on utility + ic-m idle upload */
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  form:not(.has-uploaded-file) .upload-secondary-cta,
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  label.upload-box[data-upload-box] .upload-secondary-cta,
  html body.flux-tool-body.flux-tool-image-tools
  main#main#main#main#main#main[data-tool]
  .utility-form:not(.has-uploaded-file) .upload-secondary-cta {
    display: none !important;
  }
}

/* Trust pills — 4-row grid + static icon masks until Lucide hydrates (all image tools) */
@media (max-width: 760px) {
  html body.flux-tool-image-tools form:not(.has-uploaded-file) .c100kb-trust-badges.c100kb-trust-badges--below-upload {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 5px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.4rem 0 0.25rem !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible !important;
    min-height: 0 !important;
    contain: none !important;
    box-sizing: border-box !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .c100kb-trust-badges.c100kb-trust-badges--below-upload > li {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .c100kb-trust-badges.c100kb-trust-badges--below-upload > li:last-child {
    grid-column: 1 / -1 !important;
  }

  html body.flux-tool-image-tools form:not(.has-uploaded-file) .c100kb-trust-badges.c100kb-trust-badges--below-upload .c100kb-trust-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.32rem !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 24px !important;
    padding: 0.28rem 0.55rem !important;
    border: 1px solid rgba(191, 219, 254, 0.95) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #334155 !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.07) !important;
    box-sizing: border-box !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide]:not(:has(svg)) {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    flex: 0 0 12px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    vertical-align: middle !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide]:not(:has(svg))::before {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    background: #475569 !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="shield-check"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="monitor-smartphone"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="lock-keyhole"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="zap"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="badge-check"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.2a4 4 0 0 1 0 5.6l1.85 1.85a4 4 0 0 0 5.6 0l.65-.65'/%3E%3Cpath d='m14 7 3 3'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.85 8.2a4 4 0 0 1 0 5.6l1.85 1.85a4 4 0 0 0 5.6 0l.65-.65'/%3E%3Cpath d='m14 7 3 3'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="smartphone"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='20' x='5' y='2' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='14' height='20' x='5' y='2' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide="user-x"]:not(:has(svg))::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m17 8 5 5'/%3E%3Cpath d='m22 8-5 5'/%3E%3C/svg%3E") center/contain no-repeat !important;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='m17 8 5 5'/%3E%3Cpath d='m22 8-5 5'/%3E%3C/svg%3E") center/contain no-repeat !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge i[data-lucide]:has(svg)::before {
    content: none !important;
    display: none !important;
  }

  html body.flux-tool-image-tools .c100kb-trust-badge svg {
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    flex-shrink: 0 !important;
    display: block !important;
    color: #475569 !important;
    stroke: currentColor !important;
  }
}
